Jiangnan Li
2025-06-08 cdd0be2aa8c6e0a6d97779f3db3072952b54bf13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
declare module "*.scss" {
  const content: string
  export = content
}
 
// dom custom event
interface CustomEventMap {
  prenav: CustomEvent<{}>
  nav: CustomEvent<{ url: FullSlug }>
  themechange: CustomEvent<{ theme: "light" | "dark" }>
  readermodechange: CustomEvent<{ mode: "on" | "off" }>
}
 
type ContentIndex = Record<FullSlug, ContentDetails>
declare const fetchData: Promise<ContentIndex>