quartz-research-note/index.d.ts

18 lines
425 B
TypeScript
Raw Normal View History

2023-06-01 21:35:31 +00:00
declare module '*.scss' {
2023-06-17 02:41:59 +00:00
const content: string
2023-06-01 21:35:31 +00:00
export = content
}
2023-06-17 02:41:59 +00: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;
}
}