UNPKG

@beenotung/tslib

Version:
8 lines (7 loc) 337 B
export declare function promisify<A>(f: (...args: any[]) => any, args?: any[]): Promise<A>; export interface PromiseCallback<A> { (err: any, res: A): any; promise: Promise<A>; } export declare function genPromiseCallback<A>(): PromiseCallback<A>; export declare function runFinally<A>(p: Promise<A>, cb: () => void): Promise<A>;