UNPKG

286 BTypeScriptView Raw
1/**
2 * @param { Promise } promise
3 * @param { Object= } errorExt - Additional Information you can pass to the err object
4 * @return { Promise }
5 */
6export declare function to<T, U = Error>(promise: Promise<T>, errorExt?: object): Promise<[U, undefined] | [null, T]>;
7export default to;