jbilcke-hf HF Staff commited on
Commit
457997e
·
1 Parent(s): 42be57d

type for the response

Browse files
Files changed (1) hide show
  1. src/types.mts +1 -1
src/types.mts CHANGED
@@ -14,7 +14,7 @@ export type Post = {
14
  export type PostAPIResponse = {
15
  success?: boolean
16
  error?: string
17
- post: Post
18
  }
19
 
20
  export type PostAPIRequest = Partial<Post>
 
14
  export type PostAPIResponse = {
15
  success?: boolean
16
  error?: string
17
+ posts: Post[]
18
  }
19
 
20
  export type PostAPIRequest = Partial<Post>