forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pify.d.ts
21 lines (18 loc) · 800 Bytes
/
pify.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Type definitions for pify
// Project: https://github.com/sindresorhus/pify
// Definitions by: Sam Verschueren <https://github.com/samverschueren>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "pify" {
interface PifyOptions {
multiArgs?: boolean,
include?: [string | RegExp],
exclude?: [string | RegExp],
excludeMain?: boolean
}
function pify(input: Function, promiseModule?: Function, options?: PifyOptions): (...args:any[]) => Promise<any>;
function pify(input: any, promiseModule?: Function, options?: PifyOptions): any;
function pify(input: Function, options?: PifyOptions): (...args:any[]) => Promise<any>;
function pify(input: any, options?: PifyOptions): any;
namespace pify {}
export = pify;
}