wiki/index.d.ts

18 lines
421 B
TypeScript
Raw Normal View History

2023-06-01 21:35:31 +00:00
declare module '*.scss' {
2023-06-17 02:41:59 +00:00
const content: string
2023-06-01 21:35:31 +00:00
export = content
}
2023-06-17 02:41:59 +00:00
// dom custom event
interface CustomEventMap {
2023-06-17 19:07:40 +00:00
"nav": CustomEvent<{ url: string }>;
2023-06-17 02:41:59 +00:00
}
declare global {
interface Document {
addEventListener<K extends keyof CustomEventMap>(type: K,
listener: (this: Document, ev: CustomEventMap[K]) => void): void;
dispatchEvent<K extends keyof CustomEventMap>(ev: CustomEventMap[K]): void;
}
}