CoastalCommitsPastes/client/lib/types.d.ts
2022-03-21 18:51:19 -07:00

28 lines
474 B
TypeScript

export type PostVisibility = "unlisted" | "private" | "public" | "protected"
export type ThemeProps = {
theme: "light" | "dark" | string,
changeTheme: () => void
}
export type Document = {
title: string
content: string
id: string
}
type File = {
id: string
title: string
content: string
}
type Files = File[]
export type Post = {
id: string
title: string
description: string
visibility: PostVisibility
files: Files
}