notes/index.d.ts

16 lines
398 B
TypeScript
Raw Normal View History

2023-07-22 17:27:41 -07:00
declare module "*.scss" {
2023-06-16 19:41:59 -07:00
const content: string
2023-06-01 17:35:31 -04:00
export = content
}
2023-06-16 19:41:59 -07:00
// dom custom event
interface CustomEventMap {
prenav: CustomEvent<{}>
nav: CustomEvent<{ url: FullSlug }>
themechange: CustomEvent<{ theme: "light" | "dark" }>
2025-04-17 19:45:17 -07:00
readermodechange: CustomEvent<{ mode: "on" | "off" }>
2023-06-16 19:41:59 -07:00
}
2025-03-09 15:33:15 -07:00
type ContentIndex = Record<FullSlug, ContentDetails>
2023-06-18 10:47:07 -07:00
declare const fetchData: Promise<ContentIndex>