feat(core): add event listener options to renderer (#59092)

Updates the `Renderer2.listen` signature to accept event options, as well as all adjacent types to it.

PR Close #59092
This commit is contained in:
Kristiyan Kostadinov
2024-12-06 18:26:08 +01:00
committed by Alex Rickabaugh
parent 46f00f9518
commit d010e11b73
19 changed files with 143 additions and 36 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ export abstract class DomAdapter {
abstract isShadowRoot(node: any): boolean;
// Used by KeyEventsPlugin
abstract onAndCancel(el: any, evt: any, listener: any): Function;
abstract onAndCancel(el: any, evt: any, listener: any, options?: any): Function;
// Used by PlatformLocation and ServerEventManagerPlugin
abstract getGlobalEventTarget(doc: Document, target: string): any;