diff --git a/typescript/core/platform/web/eventListener.ts b/typescript/core/platform/web/eventListener.ts index 1380e0967..d50aa7da1 100644 --- a/typescript/core/platform/web/eventListener.ts +++ b/typescript/core/platform/web/eventListener.ts @@ -1,5 +1,5 @@ export type _EventListener = { - listen: (target: EventTarget, eventType: string, callback: Function) => void - capture: (target: EventTarget, eventType: string, callback: Function) => void + listen: (target: EventTarget, eventType: string, callback: Function) => { remove: () => void } + capture: (target: EventTarget, eventType: string, callback: Function) => { remove: () => void } registerDefault: () => void } \ No newline at end of file