UNPKG

thorish

Version:

This is a library of useful JS concepts and data structures for Node and the browser. It it, unashamedly, a dumping ground for code needed by [@samthor](https://twitter.com/samthor)'s projects.

9 lines (8 loc) 276 B
/** * Returns a {@link Promise} that rejects with {@link symbolAbortSignal} when aborted. */ export declare function promiseForSignal(signal?: AbortSignal): Promise<never>; /** * Symbol used in throw/catch blocks. */ export declare const symbolAbortSignal: unique symbol;