rizaldy.club/index.d.ts

18 lines
421 B
TypeScript
Raw Normal View History

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