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

**Search Terms** playoutDelayHint, playoutDelay **Suggestion** Add playoutDelayHint to RTPRtcReceiver. The API playoutDelayHint as a member to RTCRtpReceiver was introduced in https://henbos.github.io/webrtc-timing/#dom-rtcrtpreceiver-playoutdelayhint and implemented by Chrome. It was adopted by WebRTC...

GitHub provides [a branch protection rule](https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/types-of-required-status-checks) to prevent breakage like c735618f0180198fca0f33085b3a2aa1d91421b3. >This ensures pull requests targeting a matching branch have been tested with the latest code. This setting will not...

Separate WebAssembly types from `lib.dom.d.ts` into their own file

[{"_id":"635ad8baea01ec786e7ce434","body":"+1\r\n\r\nCurrently I can't define `AbortController`\/`AbortSignal`\/`EventTarget`\/`Event` for [email protected] because typings include `lib.dom.d.ts` (with its own implementation of `AbortController`\/`AbortSignal`, etc.) (https:\/\/github.com\/DefinitelyTyped\/DefinitelyTyped\/pull\/48981)","issue_id":1661112978293,"origin_id":716578334,"user_origin_id":1198848,"create_time":1603722050,"update_time":1603722050,"id":1666898106762,"updated_at":"2022-10-27T19:15:06.762000Z","created_at":"2022-10-27T19:15:06.762000Z"},{"_id":"635ad8baea01ec786e7ce435","body":"@Semigradsky That\u2019s\u00a0unrelated to\u00a0this.\r\n\r\nYour\u00a0case is\u00a0happening because\u00a0you\u2019re defining\u00a0them\u00a0using `class\u00a0EventTarget` instead\u00a0of `interface\u00a0EventTarget\u00a0{\u00a0...\u00a0}` and\u00a0`declare\u00a0var\u00a0EventTarget: EventTargetConstructor`, but\u00a0that\u00a0depends on\u00a0**TypeScript** language\u00a0support: <https:\/\/github.com\/microsoft\/TypeScript\/issues\/39054#issuecomment-644299696> and <https:\/\/github.com\/microsoft\/TypeScript\/issues\/39504>.","issue_id":1661112978293,"origin_id":716702534,"user_origin_id":3889017,"create_time":1603732969,"update_time":1603733466,"id":1666898106788,"updated_at":"2022-10-27T19:15:06.787000Z","created_at":"2022-10-27T19:15:06.787000Z"}] comment

Currently, if you wish to use **WebAssembly**, you need to include `lib.dom.d.ts`, even in cases where that’s incorrect (e.g.: **NodeJS** or **Deno**). The solution would be to move non‑web‑specific[^1] **WebAssembly** ...

HTMLVideoElement missing requestVideoFrameCallback

[{"_id":"635adbc9ea01ec786e7ce673","body":"I'm kinda new to this, would there be a way for me to override the interface in my own type definition file for the time being?","issue_id":1661112978296,"origin_id":715198556,"user_origin_id":11627777,"create_time":1603442932,"update_time":1603442932,"id":1666898889768,"updated_at":"2022-10-27T19:28:09.768000Z","created_at":"2022-10-27T19:28:09.768000Z"},{"_id":"635adbc9ea01ec786e7ce674","body":"@PindaPixel you should just be able to copy-paste the above definitions in your own file - possibly wrapping it all in `declare global { ... }`","issue_id":1661112978296,"origin_id":715266079,"user_origin_id":166966,"create_time":1603450261,"update_time":1603450261,"id":1666898889774,"updated_at":"2022-10-27T19:28:09.773000Z","created_at":"2022-10-27T19:28:09.773000Z"}] comment

Possibly [the spec](https://wicg.github.io/video-rvfc/) is too early for inclusion. For others with the same issue, here are the types I came up with: ```ts interface VideoFrameMetadata { presentationTime: DOMHighResTimeStamp; expectedDisplayTime: DOMHighResTimeStamp;...

'onclick' type of 'this' is wrong

[{"_id":"635ad933d297b6213235f3fc","body":"Hi, this still is present in v3.9.5, I found it with ```onchange```....","issue_id":1661112978301,"origin_id":691606544,"user_origin_id":10523095,"create_time":1599969663,"update_time":1599969663,"id":1666898227087,"updated_at":"2022-10-27T19:17:07.087000Z","created_at":"2022-10-27T19:17:07.087000Z"}] comment

```ts document.body.onclick = function() { console.log(this.innerHTML.length); } ``` The code works in a browser and worked in `[email protected]`. But in `[email protected]` it is a compile error: ``` src/a.ts:3:22 - error...

bug

Changes which could affect builds: - https://github.com/microsoft/TSJS-lib-generator/pull/873 Updates the `specs -> .d.ts` for the DOM .d.ts file to take into account more ways to declare something should not exist. Removing...

In: ```typescript let el = document.createElement('p') el.ontransitionend = function(){let r = this} ``` The this value of r is actually el or typeof el, but typescript tells me that r...

Spec: https://w3c.github.io/IndexedDB/#factory-interface Mdn: https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/databases Shipped: Chrome

Possible breaking changes for 4.0

[{"_id":"635add4fea01ec786e7ce781","body":"I've noted this in the release notes","issue_id":1661112978319,"origin_id":649714964,"user_origin_id":49038,"create_time":1593105784,"update_time":1593105784,"id":1666899279260,"updated_at":"2022-10-27T19:34:39.259000Z","created_at":"2022-10-27T19:34:39.259000Z"}] comment

- `document.origin` - https://github.com/microsoft/TSJS-lib-generator/pull/840 - this was only available in IE/Safari - [MDN recommends](https://developer.mozilla.org/en-US/docs/Web/API/Document/origin) `self.origin` instead

Make EventListener covariant

[{"_id":"635ad35acecf4e081a219d57","body":"The solution\r\n```js\r\nevtSource.addEventListener(\"messageEvt\", ((e: MessageEvent) => {}) as EventListener);\r\n```\r\nDoesnt work for me either, when I use it with `React.MouseEvent`. I dont know if it really works in any other case at that point.","issue_id":1661112978323,"origin_id":560132848,"user_origin_id":9019120,"create_time":1575220455,"update_time":1575220492,"id":1666896730970,"updated_at":"2022-10-27T18:52:10.969000Z","created_at":"2022-10-27T18:52:10.969000Z"},{"_id":"635ad35acecf4e081a219d58","body":"@exapsy React.MouseEvent is not meant to be used with EventSource. I think your issue is a different one.","issue_id":1661112978323,"origin_id":609824249,"user_origin_id":53570854,"create_time":1586182777,"update_time":1586182777,"id":1666896730975,"updated_at":"2022-10-27T18:52:10.975000Z","created_at":"2022-10-27T18:52:10.975000Z"},{"_id":"635ad35acecf4e081a219d59","body":"I have encountered this issue using EventSource with custom message types as in this tutorial: <https:\/\/javascript.info\/server-sent-events#event-types>\r\n\r\nI am working around this by redefining the types of `EventSource` `addEventListener` and `removeEventListener` to always receive `MessageEvent` rather than `EventListenerOrEventListenerObject` as they currently do.\r\n\r\nhttps:\/\/github.com\/microsoft\/TypeScript\/blob\/9f70d498f250429ab388f4b34507ecd0f554feb3\/lib\/lib.dom.d.ts#L5396\r\n\r\nhttps:\/\/github.com\/microsoft\/TypeScript\/blob\/9f70d498f250429ab388f4b34507ecd0f554feb3\/lib\/lib.dom.d.ts#L5398\r\n\r\n```diff\r\n--- lib.dom.d.ts\t2020-06-23 15:11:30.000000000 -0600\r\n+++ patched.d.ts\t2020-06-23 15:11:12.000000000 -0600\r\n@@ -21,8 +21,9 @@\r\n readonly CLOSED: number;\r\n readonly CONNECTING: number;\r\n readonly OPEN: number;\r\n+\r\n addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\r\n- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\r\n+ addEventListener(type: string,listener: (this: EventSource, ev: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;\r\n removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\r\n- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\r\n+ removeEventListener(type: string, listener: MessageEvent, options?: boolean | EventListenerOptions): void;\r\n }\r\n```\r\n\r\nI think in the case of messages from an EventSource it makes sense that any event other than `open` and `error` will be a `MessageEvent`, but I'm aware that this doesn't solve general case...","issue_id":1661112978323,"origin_id":648432892,"user_origin_id":212280,"create_time":1592947017,"update_time":1592947017,"id":1666896730980,"updated_at":"2022-10-27T18:52:10.980000Z","created_at":"2022-10-27T18:52:10.980000Z"}] comment

Hello, I opened https://github.com/microsoft/TypeScript/pull/35211 without realizing that the `lib.dom.d.ts` file was a generated file. I'm copying the PR description here to see if people think it is a good idea....