Routine update of dom-related lib.d.ts#7619
Conversation
|
|
||
| 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.
TIL listener is optional. Although not sure what's the point in allowing this :/
There was a problem hiding this comment.
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