DefinitelyTyped/types/promise-timeout/index.d.ts
2018-04-17 09:39:52 -07:00

9 lines
361 B
TypeScript

// Type definitions for promise-timeout 1.3
// Project: https://github.com/building5/promise-timeout#readme
// Definitions by: Aankhen <https://github.com/Aankhen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function timeout<T>(promise: Promise<T>, timeoutMillis: number): Promise<T>;
export class TimeoutError extends Error { }