manifold/common/post.ts
James Grugett b21daa1248
Date docs on Manifold (#941)
* Date docs

* Create date doc

* Create and show a date market as well

* Move url to date-docs

* Date doc individual page

* Add share button

* Edit date docs

* Layout

* Add comments for create-post

* Add comments and back nav

* Fix urls

* Tweaks
2022-09-27 17:30:07 -05:00

21 lines
360 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'
contractSlug: string
}
export const MAX_POST_TITLE_LENGTH = 480