UNPKG

@lesnoypudge/utils

Version:

lesnoypudge's utils

5 lines (4 loc) 186 B
/** * Catches errors in provided async function. */ export declare const catchErrorAsync: <_Value>(fn: () => PromiseLike<_Value>) => Promise<[_Value, undefined] | [undefined, Error]>;