mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 03:26:22 +00:00
17 lines
421 B
TypeScript
17 lines
421 B
TypeScript
declare module '*.scss' {
|
|
const content: string
|
|
export = content
|
|
}
|
|
|
|
// dom custom event
|
|
interface CustomEventMap {
|
|
"nav": CustomEvent<{ url: string }>;
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|