Skip to content

timeout does not exist on AbortSignal; #1866

Description

@cancan101

Search Terms

timeout does not exist on AbortSignal;

Expected Behavior

No error / Function: timeout]

According to: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout this should exist in node 17.3+

Actual Behavior

[eval].ts:1:13 - error TS2339: Property 'timeout' does not exist on type '{ new (): AbortSignal; prototype: AbortSignal; }'.

1 AbortSignal.timeout
              ~~~~~~~

Steps to reproduce the problem

Run: npx ts-node -e "AbortSignal.timeout"

Minimal reproduction

npx ts-node -e "AbortSignal.timeout"

Specifications

  • ts-node version:
  • node version:
  • TypeScript version:
  • tsconfig.json, if you're using one:
ts-node v10.9.1 
node v18.0.0
compiler v4.7.4 
  • package.json:
{}
  • Operating system and version:
  • If Windows, are you using WSL or WSL2?:

Activity

  1. locked and limited conversation to collaborators on Aug 18, 2022
  2. converted this issue into a discussion #1867 on Aug 18, 2022
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions