From 5098597cb14df8a0be9249fcabbdf5b6d126cd85 Mon Sep 17 00:00:00 2001 From: Mario Schlicht Date: Tue, 18 Jan 2022 08:01:58 +0100 Subject: Add parameter "options" to EventTarget.off() - additional: Typescript-Interfaces for off() functions updated --- svg.js.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svg.js.d.ts') diff --git a/svg.js.d.ts b/svg.js.d.ts index 0560a62..baef3b9 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -27,8 +27,8 @@ declare module "@svgdotjs/svg.js" { function on(el: Node | Window, events: string, cb: EventListener, binbind?: any, options?: AddEventListenerOptions): void; function on(el: Node | Window, events: Event[], cb: EventListener, binbind?: any, options?: AddEventListenerOptions): void; - function off(el: Node | Window, events?: string, cb?: EventListener | number): void; - function off(el: Node | Window, events?: Event[], cb?: EventListener | number): void; + function off(el: Node | Window, events?: string, cb?: EventListener | number, options?: AddEventListenerOptions): void; + function off(el: Node | Window, events?: Event[], cb?: EventListener | number, options?: AddEventListenerOptions): void; function dispatch(node: Node | Window, event: Event, data?: object, options?: object): Event @@ -579,7 +579,7 @@ declare module "@svgdotjs/svg.js" { getEventTarget(): this | Node on(events: string | Event[], cb: EventListener, binbind?: any, options?: AddEventListenerOptions): this; - off(events?: string | Event[], cb?: EventListener | number): this; + off(events?: string | Event[], cb?: EventListener | number, options?: AddEventListenerOptions): this; removeEventListener(): void } -- cgit v1.2.3