TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

Tool for generating dom related TypeScript and JavaScript library files

Results 262 TypeScript-DOM-lib-generator issues
Sort by recently updated
recently updated
newest added

### Summary `navigator.serviceWorker` may be `undefined` in some secure contexts, like IABs and Firefox Private Mode ### Expected vs. Actual Behavior ```ts navigator.serviceWorker.register() ``` Expected: throw a TypeScript error; `serviceWorker`...

lib.d.ts bug

This repo is particularly sensitive to PR merge races breaking things, since so much is generated and modified. This PR updates the CI job to also be able to run...

maintainers

# Code that should compile but doesn't ```ts function sendIt (peerConnection: RTCPeerConnection, data: ArrayBufferView | string): void { const dc = peerConnection.createDataChannel('') dc.send(data) } ``` # Reason `RTCDataChannel.send` accepts `string...

According to the spec (https://dom.spec.whatwg.org/#interface-namednodemap) and experimentally in Chrome, you can index a NamedNodeMap with a string and get back an Attr. The TS definition only has: ```ts interface NamedNodeMap...

As of `@types/[email protected]`, **SubtleCrypto** is declared as: ```ts interface SubtleCrypto { importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray): Promise;...

Certainly the intention was to [run it on the main branch](aa8c6a729290cd2cdb6215cec216eecf92c237e8), but it doesn't seem to be the case now.

Narrow down return type of `StylePropertyMapReadOnly.get()` to match CSS Types OM specification. Properties now return their specific CSSStyleValue sub classes: - CSSUnitValue - CSSKeywordValue - CSSTransformValue - Default: CSSStyleValue This...

Currently, `StylePropertyMapReadOnly.get()` returns `undefined | CSSStyleValue` for all CSS properties. This doesn't reflect the CSS Typed OM specification where different properties return specific subclasses like `CSSUnitValue`, `CSSKeywordValue`, and `CSSTransformValue`. I...

Because of global type alias interning, the global `type TimerHandler = string | Function` means *any* `string | Function` union gets called `TimerHandler`. This makes (for example) lodash errors and...

Now that we can extend both class instance type and static type, can we now directly emit classes? Is there any remaining blocking problems?