keroosha.cybergulag.today/index.d.ts

18 lines
421 B
TypeScript
Raw Normal View History

2023-06-02 00:35:31 +03:00
declare module '*.scss' {
2023-06-17 05:41:59 +03:00
const content: string
2023-06-02 00:35:31 +03:00
export = content
}
2023-06-17 05:41:59 +03:00
// dom custom event
interface CustomEventMap {
2023-06-17 22:07:40 +03:00
"nav": CustomEvent<{ url: string }>;
2023-06-17 05:41:59 +03: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;
}
}