UNPKG

return-style

Version:

Non-intrusively convert the result of any function or promise to the user's desired style.

2 lines (1 loc) 168 B
export declare function getResultErrorPromise<E = Error, T = unknown>(promise: PromiseLike<T>): Promise<[result: T, error: undefined] | [result: undefined, error: E]>;