// Type definitions for p-timeout 1.2 // Project: https://github.com/sindresorhus/p-timeout#readme // Definitions by: BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = pTimeout; declare function pTimeout(input: Promise, ms: number, message?: string | pTimeout.TimeoutError): Promise; declare function pTimeout(input: Promise, ms: number, fallback: () => R | Promise): Promise; declare namespace pTimeout { class TimeoutError extends Error { readonly name: 'TimeoutError'; constructor(message?: string); } }