UNPKG

@lesnoypudge/utils

Version:

lesnoypudge's utils

6 lines (5 loc) 210 B
/** * Wraps a promise with a timeout, rejecting if it * does not resolve within the specified time. */ export declare const promiseTimeout: <_Value>(fn: Promise<_Value>, timeout: number) => Promise<_Value>;