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 The `WebAssembly.Module` interface is currently emitted as an empty interface, making it structurally compatible with any object in TypeScript ### Expected vs. Actual Behavior ```ts const abc: WebAssembly.Module...

lib.d.ts bug

Overrides the type of `URLSearchParams` init to accept a `Iterable` instead of `string[][]`. [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams#options) For example: ```ts new URLSearchParams(new Set([["name", "ross"]])); ``` is valid, but currently shows an error....

### Summary The MDN link for requestAnimationFrame in lib.dom.d.ts links to the wrong MDN page ### Expected vs. Actual Behavior **Current Link**: https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame **Should Link To**: https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame The issue is...

lib.d.ts bug

This provides an alternative to the common pattern of `document.getElementById("...") as HTMLWhateverElement` which casts away the possibility of `null`, consequently hiding a potential type error.

I spent 10 minutes and couldn't figure out how to add these docs to the generated output, so here's a recommended declaration from the Deno repo: ```ts /** * Specifies...

I did a POC in a local fork, it can configure a browser target, say Chrome 75, then it will mark APIs optional if they don't exist in chrome 75...

### Summary Missing type in constructor ### Expected vs. Actual Behavior This is a fairly recent change, the `ImageData` constructor now accepts `Float16Array` as type for `data` in it's constructor,...

lib.d.ts bug

### Summary Missing Type for SecurityPolicyViolationEvent in WorkerGlobalScope ### Expected vs. Actual Behavior # `securitypolicyviolation` event in `WorkerGlobalScope` should be typed as `SecurityPolicyViolationEvent` According to the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/securitypolicyviolation_event), the `securitypolicyviolation`...

lib.d.ts bug

I'm maintaining libs that target both browsers and Node (through different bundles, but the source code is shared). I'm bumping into problems specifically with the type definitions of streams, e.g....

### Summary Optional fields in `lib.dom.d.ts` do not explicity have `undefined` in their types, which makes their construction needlessly difficult ### Expected vs. Actual Behavior Expected following code to just...

lib.d.ts bug