2022-03-21 06:28:06 -04:00
|
|
|
export type PostVisibility = "unlisted" | "private" | "public" | "protected"
|
|
|
|
|
|
|
|
export type ThemeProps = {
|
2022-03-23 18:34:23 -04:00
|
|
|
theme: "light" | "dark" | string
|
|
|
|
changeTheme: () => void
|
2022-03-21 06:28:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export type Document = {
|
2022-03-23 18:34:23 -04:00
|
|
|
title: string
|
|
|
|
content: string
|
|
|
|
id: string
|
2022-03-21 06:28:06 -04:00
|
|
|
}
|
2022-03-21 21:51:19 -04:00
|
|
|
|
2022-03-23 00:18:26 -04:00
|
|
|
export type File = {
|
2022-03-23 18:34:23 -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:34:23 -04:00
|
|
|
id: string
|
|
|
|
title: string
|
|
|
|
description: string
|
|
|
|
visibility: PostVisibility
|
|
|
|
files: Files
|
2022-03-21 21:51:19 -04:00
|
|
|
}
|