keroosha.cybergulag.today/index.d.ts

18 lines
425 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 {
"spa_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;
}
}