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

### Font related: ```ts type FontData = { readonly family:string; readonly fullName:string; readonly postscriptName:string; readonly style:string; } const queryLocalFonts:undefined | (() => Promise); // https://developer.mozilla.org/en-US/docs/Web/API/Window/queryLocalFonts interface Permissions { query(permissionDesc:{name:"local-fonts"}): Promise;...

### SpeechRecognition related: ```ts // https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition interface SpeechRecognition extends EventTarget { continuous:boolean; lang:string; interimResults:boolean; maxAlternatives:number; start():void; stop():void; addEventListener(type: K, listener: (this: FontFaceSet, ev: SpeechRecognitionEventMap[K]) => any, options?: boolean | AddEventListenerOptions):...

https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/b7a45db8fbf3b54d47e4af1109efd9f053db1ef1/deploy/createTypesPackages.js#L14-L51 Only shared/serviceworker have the packages but not the dedicated worker.

There's no good data in MDN because there's simply no good way to feature detect dictionary members. Instead, given that IDL dictionaries are also used in each implementation, there could...

- `Blob`: [mdn](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob#array), [w3c](https://w3c.github.io/FileAPI/#dom-blob-blob) - `File`: [mdn](https://developer.mozilla.org/en-US/docs/Web/API/File/File#bits), [w3c](https://w3c.github.io/FileAPI/#dom-file-file)

Currently the `navigation` object is not available in the DOM and while the [Navigation API](https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API) is still experimental there is decent support for it in modern versions of browser. It'd...

Events in a shadow DOM can bubble up to the shadow root and can be listened to on the `ShadowRoot` objects. Thus I think `ShadowRootEventMap` should include more events, probably...

From what I understand, this library uses an automated system to read the specs and extract the types from them. Occasionally the spec does not specify any type and so...

## One Line Summary `pushsubscriptionchange` is [currently](https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/b7a45db8fbf3b54d47e4af1109efd9f053db1ef1/baselines/serviceworker.generated.d.ts#L3027) defined as `Event` when it should be it's own type defined by [PushSubscriptionChangeEvent in the w3c spec](https://w3c.github.io/push-api/#dom-pushsubscriptionchangeevent). ## Background PR ["#944 -Remove unimplemented...

I would like to globally augment the `ResponseConstructor` (e.g. add the missing [`json(data, init)` static method](https://fetch.spec.whatwg.org/#dom-response-json), safely add my own using unique symbols, etc.). However I do not see how...