/** ***************************************** * 加载依赖 ***************************************** */ import { U, F, FOP } from './d'; /** ***************************************** * 解析结果 ***************************************** */ declare type Thenable = (T extends (...args: infer P) => void ? P extends [err: U, ...rest: infer Q] ? Promise : Promise : Promise); /** ***************************************** * 重载列表 ***************************************** */ declare type Overloads = (T extends [head: infer P, ...rest: infer Q] ? P extends [...rest: infer A, tail: infer R] ? ((...args: A) => Thenable) & Overloads : Record : Record); /** ***************************************** * Promisify ***************************************** */ declare type Promisify = Overloads>; /** ***************************************** * Promisify ***************************************** */ export declare function promisify(handler: T): Promisify; export {}; //# sourceMappingURL=promisify.d.ts.map