2023-06-16 16:41:45 +08:00

28 lines
514 B
TypeScript

export type NotesDataOptions = {
dir: string
link: string
include?: string | string[]
exclude?: string | string[]
notes: NotesItem[]
}
export type NotesItem = {
dir: string
link: string
text: string
sidebar?: NotesSidebar | 'auto'
}
export type NotesSidebar = (NotesSidebarItem | string)[]
export type NotesSidebarItem = {
text?: string
link?: string
dir?: string
collapsed?: boolean
items?: NotesSidebar
icon?: string
}
export type NotesData = Record<string, NotesSidebarItem[]>