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
- Operating system and version:
- If Windows, are you using WSL or WSL2?:
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
Steps to reproduce the problem
Run:
npx ts-node -e "AbortSignal.timeout"Minimal reproduction
Specifications