parcoursup/node_modules/bianco.events/index.d.ts
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00

29 lines
708 B
TypeScript

export function add<
Target extends EventTarget,
Callback extends EventListenerOrEventListenerObject,
>(
el: Target | Target[],
eventName: string,
callback: Callback,
options?: AddEventListenerOptions | boolean,
): Target
export function once<
Target extends EventTarget,
Callback extends EventListenerOrEventListenerObject,
>(
el: Target | Target[],
eventName: string,
callback: Callback,
options?: AddEventListenerOptions | boolean,
): Target
export function remove<
Target extends EventTarget,
Callback extends EventListenerOrEventListenerObject,
>(
el: Target | Target[],
eventName: string,
callback: Callback,
options?: EventListenerOptions | boolean,
): Target