Skip to content

Port generated lib files#19426

Merged
mhegazy merged 1 commit into
masterfrom
portLibFiles
Oct 23, 2017
Merged

Port generated lib files#19426
mhegazy merged 1 commit into
masterfrom
portLibFiles

Conversation

@mhegazy
Copy link
Copy Markdown
Contributor

@mhegazy mhegazy commented Oct 23, 2017

Fixes #19386

@mhegazy mhegazy merged commit a1e3f00 into master Oct 23, 2017
@mhegazy mhegazy deleted the portLibFiles branch October 23, 2017 22:03
declare function removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the new overloads have useCapture?: boolean instead of options?: boolean | EventListenerOptions. Why drop EvenListenerOptions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah. also addeventListener has the wrong signature. will need to fix them all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants