community / src /types.mts
jbilcke-hf's picture
jbilcke-hf HF Staff
types are more strict, so let's use that
42be57d
raw
history blame
302 Bytes
export type Post = {
postId: string
appId: string
prompt: string
previewUrl: string
assetUrl: string
createdAt: string
upvotes: number
downvotes: number
}
export type PostAPIResponse = {
success?: boolean
error?: string
post: Post
}
export type PostAPIRequest = Partial<Post>