quartz-research-note/index.d.ts
2023-06-17 12:07:40 -07:00

18 lines
421 B
TypeScript

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