Jacky Zhao
2026-01-08 fa8d87a23a85a6ccb4dd716f4930fb7f55f809e8
index.d.ts
@@ -5,7 +5,11 @@
// dom custom event
interface CustomEventMap {
  nav: CustomEvent<{ url: CanonicalSlug }>
  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>