CoastalCommitsPastes/client/lib/types.d.ts

27 lines
404 B
TypeScript
Raw Normal View History

2022-03-21 03:28:06 -07:00
export type PostVisibility = "unlisted" | "private" | "public" | "protected"
export type Document = {
2022-03-23 15:42:22 -07:00
title: string
content: string
id: string
2022-03-21 03:28:06 -07:00
}
2022-03-21 18:51:19 -07:00
export type File = {
2022-03-23 15:42:22 -07:00
id: string
title: string
content: string
html: string
2022-03-24 19:32:24 -07:00
createdAt: string
2022-03-21 18:51:19 -07:00
}
type Files = File[]
export type Post = {
2022-03-23 15:42:22 -07:00
id: string
title: string
description: string
visibility: PostVisibility
files: Files
2022-03-24 19:32:24 -07:00
createdAt: string
2022-03-21 18:51:19 -07:00
}