mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 10:54:06 -06:00
22 lines
579 B
TypeScript
22 lines
579 B
TypeScript
declare module "*.scss" {
|
|
const content: string
|
|
export = content
|
|
}
|
|
|
|
// dom custom event
|
|
interface CustomEventMap {
|
|
prenav: CustomEvent<{}>
|
|
nav: CustomEvent<{ url: FullSlug }>
|
|
render: CustomEvent<{ htmlElement: HTMLElement }>
|
|
decrypt: CustomEvent<{ filePath: FullSlug; password: string }>
|
|
themechange: CustomEvent<{ theme: "light" | "dark" }>
|
|
readermodechange: CustomEvent<{ mode: "on" | "off" }>
|
|
}
|
|
|
|
type DecryptedFlag = {
|
|
decrypted?: boolean
|
|
}
|
|
|
|
type ContentIndex = Record<FullSlug, ContentDetails & DecryptedFlag>
|
|
declare const fetchData: Promise<ContentIndex>
|