1 | type InputFunction = (...args: any[]) => any;
|
2 |
|
3 | declare function pify(input: InputFunction, options?: pify.PifyOptions): (...args: any[]) => Promise<any>;
|
4 | declare function pify(input: object, options?: pify.PifyOptions): any;
|
5 |
|
6 | declare namespace pify {
|
7 | interface PifyOptions {
|
8 | multiArgs?: boolean | undefined;
|
9 | include?: Array<string | RegExp> | undefined;
|
10 | exclude?: Array<string | RegExp> | undefined;
|
11 | excludeMain?: boolean | undefined;
|
12 | errorFirst?: boolean | undefined;
|
13 | promiseModule?: PromiseModule | undefined;
|
14 | }
|
15 |
|
16 | interface PromiseModule {
|
17 | new(executor: (resolve: (value?: any) => void, reject: (reason?: any) => void) => void): any;
|
18 | }
|
19 | }
|
20 |
|
21 | export = pify;
|