UNPKG

jsfast

Version:

Fastjs(jsfast) is a useful, lightweight JavaScript library for any types of project.

4 lines (3 loc) 434 B
export declare function callUntilEnd(func: (end: () => boolean) => Promise<void | boolean> | void | boolean, timeout: number, immediate?: boolean, continueEvenError?: boolean): Promise<void>; export declare function catchError(func: () => Promise<any> | any, onError?: (error: Error) => void): Promise<any> | any; export declare function secureCall(func: () => Promise<any> | any): [any, Error | null] | Promise<[any, Error | null]>;