AbortSignal timeout vs manual abort discrimination in TypeScript
When building a utility that accepts an optional AbortSignal and internally combines it with AbortSignal.timeout(ms) using AbortSignal.any , the caller needs to know whether the resulting rejection came from a manual abort or from the timeout. TypeScript can type the signal parameter, but it cannot enforce that the implementation checks signal.aborted or for