mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +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;
|
|
}
|
|
}
|