manifold/common/post.ts
2022-08-29 15:59:52 +01:00

13 lines
229 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 const MAX_POST_TITLE_LENGTH = 480