Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding [Add]EventListenerOptions parameter for generated signatures #313

Merged
merged 2 commits into from
Oct 26, 2017

Conversation

thebanjomatic
Copy link
Contributor

@thebanjomatic thebanjomatic commented Oct 26, 2017

For the signatures generated within TS.fsx:

  • Changes the type of the third argument to boolean | AddEventListenerOptions for addEventListener
  • Changes the type of the third argument to boolean | EventListenerOptions for removeEventListener

Additionally, there were a few changes in addedTypes.json that needed to be updated by adding removeEventListener signatures and updating both addEventListener and removeEventListener to allow for AddEventListenerOptions/EventListenerOptions:

  • BroadcastChannel
  • IDBDatabase (additionally I added this: IDBDatabase for the 'versionchange' signatures)

Addresses:
microsoft/TypeScript#18136

Adam J. Hines added 2 commits October 26, 2017 12:44
For the signatures generated within TS.fsx:
* Changes the type of the third argument to `boolean | AddEventListenerOptions` for `addEventListener`
* Changes the type of the third argument to `boolean | EventListenerOptions` for `removeEventListener`

Additionally, there were a few changes in addedTypes.json that needed to be updated by adding `removeEventListener` signatures and updating both `addEventListener` and `removeEventListener` to allow options:
* BroadcastChannel
* IDBDatabase

microsoft/TypeScript#18136
@mhegazy mhegazy merged commit 5f57850 into microsoft:master Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants