CoastalCommitsPastes/client/lib/types.d.ts

30 lines
455 B
TypeScript
Raw Normal View History

2022-03-21 06:28:06 -04:00
export type PostVisibility = "unlisted" | "private" | "public" | "protected"
export type ThemeProps = {
2022-03-23 18:42:22 -04:00
theme: "light" | "dark" | string
changeTheme: () => void
2022-03-21 06:28:06 -04:00
}
export type Document = {
2022-03-23 18:42:22 -04:00
title: string
content: string
id: string
2022-03-21 06:28:06 -04:00
}
2022-03-21 21:51:19 -04:00
export type File = {
2022-03-23 18:42:22 -04:00
id: string
title: string
content: string
html: string
2022-03-21 21:51:19 -04:00
}
type Files = File[]
export type Post = {
2022-03-23 18:42:22 -04:00
id: string
title: string
description: string
visibility: PostVisibility
files: Files
2022-03-21 21:51:19 -04:00
}