// Type definitions for pify 5.0 // Project: https://github.com/sindresorhus/pify // Definitions by: Sam Verschueren // Michael Müller // Christoph Müller // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped type InputFunction = (...args: any[]) => any; declare function pify(input: InputFunction, options?: pify.PifyOptions): (...args: any[]) => Promise; declare function pify(input: object, options?: pify.PifyOptions): any; declare namespace pify { interface PifyOptions { multiArgs?: boolean | undefined; include?: Array | undefined; exclude?: Array | undefined; excludeMain?: boolean | undefined; errorFirst?: boolean | undefined; promiseModule?: PromiseModule | undefined; } interface PromiseModule { new (executor: (resolve: (value?: any) => void, reject: (reason?: any) => void) => void): any; } } export = pify;