Repository navigation
Support AbortSignal.timeout()Β #48003
Description
Activity
- addedBugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do thisYou can do this
on Feb 23, 2022 I think it is the same issue as #48444, looks like
AbortSignal.timeouthasn't made it to the major browsers yet.Here are the implementation tickets from the browsers:
Reacted by Kagami Sascha RosylightThis feature has now shipped in (at least) Chrome, Firefox & Safari: https://chromestatus.com/feature/5768400507764736.
Reacted by whoisYeshua and Piper McCorkleThis is now supported by all major browsers across the board. It's time to add the type.
saschanaz commented
on Sep 18, 2022 ContributorMore actionsThe type has been there for a while in https://github.com/microsoft/TypeScript-DOM-lib-generator/, the remaining work is to fetch that lib here.
If you are in hurry, you can try https://www.npmjs.com/package/@types/web instead of waiting for a new TS release.
Reacted by Jeong-Hee KangThis is in the latest TypeScript. It appears to have been introduced in 4.9.5. See example: https://www.typescriptlang.org/play?ts=4.9.5#code/IIIw9gTgLgyglgcwHYEMA2A6KcC2BTMAVygAoBWABioEog
I think this ticket can be closed as completed.
Reacted by Kagami Sascha RosylightDone in #50884.
- locked as resolved and limited conversation to collaborators
on Oct 22, 2025
Suggestion
Add support for whatwg/dom#1032 to the
AbortSignaltypes.π Search Terms
AbortSignal, abort signal, timeout
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
π Motivating Example
The implementation in NodeJS nodejs/node#40899
π» Use Cases