TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
Tool for generating dom related TypeScript and JavaScript library files
Should ClipboardItemData allow non-Promises?
https://github.com/microsoft/TypeScript/blob/a21024dbe7e79dc018e4193f27ecb66e0465b638/lib/lib.dom.d.ts#L3555 This implies that the options argument only allows `Promise`s of `Blob`s and `string`s, and [the spec](https://www.w3.org/TR/clipboard-apis/#typedefdef-clipboarditemdata) says so too; however, some browsers allow `Blob`s and `string`s to be used...
`RtcRtpEncodingParameters.maxFramerate` not included
Hi, As I was going through the definitions, it seems like in Typescript 4.3 or @types/[email protected] `maxFramerate` was not included. At the time, it looks like `maxFramerate` did not have...
DOM lib: Add support for Trusted Types API
This PR adds support for Trusted Types APIs and Sinks in dom and worker libraries. These APIs are so far only supported by Blink. In https://github.com/microsoft/TypeScript/issues/30024 we seem to be...
window.scrollTo behavior option missing "instant" string literal union
# Bug Report [window.scrollTo behavior option](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo#parameters) has three types: "smooth", "instant" and "auto", but typescript doesn't have "instant" value. ### 🕗 Version `v4.4.4` ### ⏯ Playground Link https://www.typescriptlang.org/play?#code/O4SwdgJg9sB0DOBjATlANmgKlAFAbwCMBTACwEMA3EKZALgAIByceAFzLFcYF8BKIA ### 💻...
Attempt to add interface for constuctors to add static properites
OK, this PR is a headache and a trip down the rabbit hole for me. It's technically a broken PR as I know one test fails, but I can't fix...
AbortSignal conflict issue between @types/[email protected] and @types/[email protected]
With the latest release of `@types/[email protected]` being installed side-by-side with `@types/[email protected]`, we are receiving the following conflict: ``` ../../node_modules/@types/node/globals.d.ts:72:13 - error TS2403: Subsequent variable declarations must have the same type....
In `GlobalEventHandlersEventMap`, `error` event is mapped to `ErrorEvent`. This might be correct for `Window` when handling events from runtime error, it is incorrect for `Element`s. When `Element`s trigger that event,...
ReadableStreamBYOBReader and ReadableStreamReader disappeared with typescript 4.2.2
I updated to typescript 4.2.2 today, but strangely, ReadableStreamBYOBReader and ReadableStreamReader disappeared from type definition
`ReadableStream.pipeThrough` should be generic on `transform` argument and return real type of `ReadableStream`
Sorry if here is not the place to discuss individual API design. Currently `pipeThrough` is defined as https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/11d922f302743cb3fcee9ab59b03d40074a2965c/baselines/dom.generated.d.ts#L11137 It always returns a `ReadableStream`. However according to spec it will return...
[WebRTC] A lot of metrics are missing
If you look at RTCStats and its subdirectory you'll notice the metrics are very much not up to date. For example [RTCOutboundRtpStreamStats in dom.generated.d.ts](https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/main/baselines/dom.generated.d.ts#L1343) appears to be missing 20-30 or...