TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
Tool for generating dom related TypeScript and JavaScript library files
You cannot make a GET or HEAD fetch request with a body. I would like this to result in a type error.
This fixes #1675.
As per https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream#async_iteration and https://streams.spec.whatwg.org/#rs-asynciterator > `ReadableStream` implements the [async iterable protocol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols). This enables asynchronous iteration over the chunks in a stream using the [for await...of](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of) syntax. The current types...
As per https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/read#return_value and https://streams.spec.whatwg.org/#ref-for-default-reader-read%E2%91%A0 > If the stream becomes closed, the promise will be fulfilled with an object of the form `{ value: undefined, done: true }`. The current...
The type for the `kind` field on `DataTransferItem` is currently `string` however the spec suggests the more narrow literal type of `"string" | "file"`. Possible also including the empty string....
`CSSStyleDeclaration` has two attributes for each CSS property. A dashed and a camelCase representation. The `CSSStyleDeclaration` interface only contains the camelCase representation currently. > ``` > partial interface CSSStyleDeclaration {...
`HTMLElement.hidden` can now be any of `true | false | "until-found"`. ([MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/hidden#until-found)) This has support from two major browsers (Chrome and Edge). ([caniuse](https://caniuse.com/mdn-html_global_attributes_hidden_until-found_value))
Moved to TS 5.3 and now all projects using BabylonJS fails with this: Error TS2430 (TS) Interface 'WebGLRenderingContext' incorrectly extends interface 'WebGLRenderingContextBase'. Types of property 'COLOR_ATTACHMENT0' are incompatible. Type 'number'...
https://developer.mozilla.org/en-US/docs/Web/API/FormData/set > The field's value. This can be a string or [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) (including subclasses such as [File](https://developer.mozilla.org/en-US/docs/Web/API/File)). If none of these are specified the value is converted to a string....