parcoursup/node_modules/bianco.events/index.d.ts

29 lines
708 B
TypeScript
Raw Normal View History

2023-03-05 13:23:23 +01:00
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