TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
Tool for generating dom related TypeScript and JavaScript library files
Event type for readystatechange is not specific enough
Fixes https://github.com/microsoft/TypeScript/issues/41775 I was a little bit unsure whether its best to use `ProgressEvent` vs making `Event` generic (`Event`) and then using `Event`.
adding new ServiceWorkerEvent interface to allow new event target
Addresses Issue microsoft/typescript#40153. - created new interface ServiceWorkerEvent - trying to edit ServiceWorkerEventMap's statechange property type.
fix: add FormData to URLSearchParams constructor
See https://github.com/microsoft/TypeScript/issues/30584 I'm aware that URLSearchParams also accepts generic iterators (see https://github.com/microsoft/TSJS-lib-generator/issues/741) but mostly interested in getting _this specific pattern_ fixed quickly, as it's used a lot.
fix(dom): DOMRECTList index can return undefined
See https://drafts.fxtf.org/geometry-1/#domrectlist
fix(NamedNodeMap): Index signature accepts `string`
See the [**DOM Specification**](https://dom.spec.whatwg.org/#interface-namednodemap) for details.
There are some web API packages in DefinitelyTyped mainly to use APIs with bad browser support. Those should be able to be generated here to prevent unwanted deviation. (Part of...
HTMLVideoElement.play may be undefined
According to [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play#return_value), "older browsers may not return a value from `play()`." I also got an alert about that in production shortly after deploying a change that used `play().catch()` without...
See https://github.com/heycam/webidl/pull/936. - `BigInt64Array` and `BigUint64Array` are introduced as keywords. - The `ArrayBufferView` and `BufferSource` aliases now include BigInt64Array and BigUint64Array as part of the union. Concretely, the only change...
HTMLFormControlsCollection does not have string accessor
As per the spec (https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormControlsCollection/namedItem), namedItem supports strings, but the accessor of `HTMLFormControlsCollection` is not updated to reflect this.