Skip to content

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

Open
@samualtnorman

Description

@samualtnorman

πŸ”Ž 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions