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

AbortSignal improper `any` type definition

Open LeonardDrs opened this issue 1 year ago • 0 comments

🔍 Search Terms

AbortSignal

Description

Hello, In the AbortSignal definition, we can see there's an any instance method that actually does not exist. It should be a static method instead. "Culprit" : https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/main/baselines/dom.iterable.generated.d.ts#L7

Sample code

Playground link

Documentation

MDN Reference

Other

Also, gentle ping on https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1162 since I intended to report this too at first.

LeonardDrs avatar Sep 17 '24 16:09 LeonardDrs