manifold/common/post.ts
James Grugett 1e3e931d16 Date docs
2022-09-27 12:42:35 -04:00

20 lines
342 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
profilePicUrl: string
type: 'date-doc'
}
export const MAX_POST_TITLE_LENGTH = 480