mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-24 11:08:16 +08:00
28 lines
514 B
TypeScript
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[]>
|