Jacky Zhao
2025-04-22 2a9290b3dfedb718dbd5fc7da09775eb803f9764
index.d.ts
@@ -1,11 +1,15 @@
declare module '*.scss' {
declare module "*.scss" {
  const content: string
  export = content
}
// dom custom event
interface CustomEventMap {
  "nav": CustomEvent<{ url: string }>;
  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>