@types/promise-timeout
Version:
TypeScript definitions for promise-timeout
23 lines (16 loc) • 758 B
Markdown
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-timeout/index.d.ts)
````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](https://github.com/Aankhen).