migu/types.d.ts
ThaUnknown e92341ef9a feat: resolve anime by year
fix: remove dead findSubFiles legacy code
chore: improve type declarations
2023-09-12 22:06:26 +02:00

16 lines
502 B
TypeScript

export {}
declare global {
interface Window {
IPC: any;
port: MessagePort
}
interface EventTarget {
on: (type: string, callback: (any) => void, options?: boolean | {}) => void
once: (type: string, callback: (any) => void, options?: boolean | {}) => void
emit: (type: string, data?: any) => void
dispatch: (type: string, data?: any) => void
removeListener: (type: string, callback: (any) => void) => void
off: (type: string, callback: (any) => void) => void
}
}