Installation
npm install --save @types/promise-timeout
Summary
This package contains type definitions for promise-timeout (https://github.com/building5/promise-timeout#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-timeout.
index.d.ts
export function timeout<T>(promise: Promise<T>, timeoutMillis: number): Promise<T>;
export class TimeoutError extends Error {}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Aankhen.