mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-19 08:22:53 +00:00
15 lines
398 B
TypeScript
15 lines
398 B
TypeScript
declare global {
|
|
export interface EventTarget<T extends Record<string, Event>> {
|
|
addEventListener<K extends keyof T>(
|
|
type: K,
|
|
listener: (event: T[K]) => void,
|
|
options?: boolean | AddEventListenerOptions,
|
|
);
|
|
addEventListener(
|
|
type: string,
|
|
callback: EventListenerOrEventListenerObject | null,
|
|
options?: EventListenerOptions | boolean,
|
|
);
|
|
}
|
|
}
|