UNPKG

337 BTypeScriptView Raw
1export declare function promisify<A>(f: (...args: any[]) => any, args?: any[]): Promise<A>;
2export interface PromiseCallback<A> {
3 (err: any, res: A): any;
4 promise: Promise<A>;
5}
6export declare function genPromiseCallback<A>(): PromiseCallback<A>;
7export declare function runFinally<A>(p: Promise<A>, cb: () => void): Promise<A>;