UNPKG

@stryke/helpers

Version:

A package containing miscellaneous helper functions that are used across many different Storm Software projects.

9 lines (8 loc) 350 B
/** * Returns a promise that rejects with a `TimeoutError` after a specified delay. * * @param ms - The delay duration in milliseconds. * @returns A promise that rejects with a `TimeoutError` after the specified delay. * @throws Throws a `TimeoutError` after the specified delay. */ export declare function timeout(ms: number): Promise<never>;