@types/promise-timeout
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/promise-timeout

Weekly Downloads

379,556

Version

1.3.3

License

MIT

Unpacked Size

2.84 kB

Total Files

5

Last publish

Collaborators

  • types