UNPKG

promised-timeout

Version:
6 lines (5 loc) 151 B
export declare function timeout({action, time, error}: { action: () => (any | Promise<any>); time: number; error: Error; }): Promise<any>;