mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-28 22:16:23 +00:00
0a76707062
* Emit custom event when theme changes * Type themechange custom event * Update darkmode docs
12 lines
263 B
TypeScript
12 lines
263 B
TypeScript
declare module "*.scss" {
|
|
const content: string
|
|
export = content
|
|
}
|
|
|
|
// dom custom event
|
|
interface CustomEventMap {
|
|
nav: CustomEvent<{ url: FullSlug }>
|
|
themechange: CustomEvent<{ theme: "light" | "dark" }>
|
|
}
|
|
|
|
declare const fetchData: Promise<ContentIndex>
|