Skip to content

Definitions have .any() instance and static methods on AbortSignal even though there is only a static method #60695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
samualtnorman opened this issue Dec 5, 2024 · 1 comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this

Comments

@samualtnorman
Copy link

πŸ”Ž Search Terms

AbortSignal

πŸ•— Version & Regression Information

⏯ Playground Link

https://www.typescriptlang.org/play/?noImplicitReturns=false&noUncheckedIndexedAccess=true&allowUnreachableCode=true&allowUnusedLabels=true&noUnusedLocals=true&noUnusedParameters=true&declaration=false&target=99&jsx=0&module=0&strictBuiltinIteratorReturn=true&useUnknownInCatchVariables=true&exactOptionalPropertyTypes=true&noFallthroughCasesInSwitch=true&noImplicitOverride=true&noPropertyAccessFromIndexSignature=true&ts=5.7.2&filetype=ts#code/PTAEBcAsEsGdQLYFMoHsAmp2qfAdquKEgB5zgBQeSA7qAIIBGqATuAMrQDmeAhgDYAKAJQA6XngCeggNoBdYUA

πŸ’» Code

// this method does not exist
new AbortSignal().any([])

πŸ™ Actual behavior

TypeScript doesn't give Property 'any' does not exist on type 'AbortSignal'.(2339).

πŸ™‚ Expected behavior

TypeScript gives Property 'any' does not exist on type 'AbortSignal'.(2339).

Additional information about the issue

No response

@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Help Wanted You can do this Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Dec 5, 2024
@MartinJohns
Copy link
Contributor

It was already fixed in the TypeScript-DOM-lib-generator: microsoft/TypeScript-DOM-lib-generator#1839

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

3 participants