quartz-research-note/index.d.ts
2023-06-16 19:41:59 -07:00

18 lines
425 B
TypeScript

declare module '*.scss' {
const content: string
export = content
}
// 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;
}
}