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 208 TypeScript-DOM-lib-generator issues
Sort by recently updated
recently updated
newest added

`deno types > deno.d.ts` will give the stdlib, and https://github.com/denoland/deno/blob/main/cli/dts/lib.deno.ns.d.ts is a rough gist if we just want to vendor a file

This is how we do it on TypeScript: ``` git config --global core.longpaths true git clone https://github.com/microsoft/DefinitelyTyped-tools $(Build.SourcesDirectory)/DefinitelyTyped-tools --depth 1 pushd $(Build.SourcesDirectory)/DefinitelyTyped-tools npm i pushd $(Build.SourcesDirectory)/DefinitelyTyped-tools/packages/dtslint-runner npm i npm i...

Would be nice to have bindings for OES_draw_buffers_indexed: https://www.khronos.org/registry/webgl/extensions/OES_draw_buffers_indexed/ Happy to help contribute if pointed in the right direction.

From https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/837#issuecomment-808958042. Currently we add types when at least two browser engines add supports, but that doesn't mean it's available everywhere. Making such types as optional may help devs to...

According to [MutationObserver MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe), calling `.observe()` without an options argument will throw a type error. The docs for the options type MutationObserverInit state that: ``` At a minimum, one...

In the spirit of https://github.com/microsoft/TypeScript/issues/38616 `MutationRecord's` `addedNodes` & `removedNodes` props should be typed as `NodeList` In TS `^4.1.3` they are `NodeList` which gives me `TS2339: Property 'classList' does not exist...

`DOMContentLoaded` is not suggested by intellisense. It should be suggested with `document.addEventListener` for example.

Some methods on `Node` could have a stricter type. Currently, the typings contain: ```ts // lib.dom.d.ts interface Node extends EventTarget { appendChild(newChild: T): T; insertBefore(newChild: T, refChild: Node | null):...

# lib Update Request Change the first argument type of `Array.prototype.includes` from the generic type based on array type to `any` or `unknown` and make it a typeguard. ## Configuration...

`navigator.share` should be an optional attribute of `Navigator` because a significant number of browsers still don't support it ([CanIUse](https://caniuse.com/web-share)), but it seems to be defined as always defined on the...