Skip to content

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

Closed

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. added
    Bug
    Domain: lib.d.ts
    on Dec 5, 2024
  2. MartinJohns commented on Dec 5, 2024

    @MartinJohns
    Contributor

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

  3. samualtnorman commented on Sep 15, 2025

    @samualtnorman
    Author

    this is fixed as of TypeScript 5.8

  4. 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

    BugDomain: lib.d.ts

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions