-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Routine update of dom-related lib.d.ts #7619
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
Conversation
@@ -226,9 +230,9 @@ declare var Event: { | |||
} | |||
|
|||
interface EventTarget { | |||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; | |||
addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL listener
is optional. Although not sure what's the point in allowing this :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the library file is generated from the spec file we got from Edge team, this is a reflection of https://github.com./Microsoft/TSJS-lib-generator/blob/master/inputfiles/browser.webidl.xml#L3558
@mhegazy any comments? |
👍 |
@zhengbli as a result of this merge and per microsoft/TypeScript-DOM-lib-generator#87 As I mentioned in microsoft/TypeScript-DOM-lib-generator#87 I would try and fix this and submit a PR but I can Any thoughts? |
@myitcv it looks like the result of a bad git merge. I'll send a PR soon for a fix. Thanks for pointing out! |
just btw: |
@sebilasse |
@zhengbli Hm - ok. generator is up and running here now but wouldn't it be possible to edit the dom.generated.d.ts "directly" ?
*) is a living standard, has own constructor and methods |
@sebilasse we never edit the Yes you are right, except the |
Note: this update has tons of changes due to taking a new version of XML spec that shipped with windows 10 TH2.
Fixes:
#5708
#6501
#7218
#7561
#7562
#7563
#7197
#6534