Skip to content

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

Description

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

Activity

  1. MartinJohns commented on Dec 5, 2024

    @MartinJohns
    Contributor

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

  2. samualtnorman commented on Sep 15, 2025

    @samualtnorman
    Author

    this is fixed as of TypeScript 5.8

  3. locked as resolved and limited conversation to collaborators on Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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