manifold/common/post.ts
2022-09-27 13:28:34 -04:00

20 lines
337 B
TypeScript

import { JSONContent } from '@tiptap/core'
export type Post = {
id: string
title: string
content: JSONContent
creatorId: string // User id
createdTime: number
slug: string
}
export type DateDoc = Post & {
bounty: number
birthday: number
photoUrl: string
type: 'date-doc'
}
export const MAX_POST_TITLE_LENGTH = 480