| Server IP : 46.62.235.243 / Your IP : 216.73.216.217 Web Server : Apache/2.4.58 (Ubuntu) System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/node_modules/@types/pify/ |
Upload File : |
// Type definitions for pify 5.0
// Project: https://github.com/sindresorhus/pify
// Definitions by: Sam Verschueren <https://github.com/samverschueren>
// Michael Müller <https://github.com/mad-mike>
// Christoph Müller <https://github.com/c7hm4r>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
type InputFunction = (...args: any[]) => any;
declare function pify(input: InputFunction, options?: pify.PifyOptions): (...args: any[]) => Promise<any>;
declare function pify(input: object, options?: pify.PifyOptions): any;
declare namespace pify {
interface PifyOptions {
multiArgs?: boolean | undefined;
include?: Array<string | RegExp> | undefined;
exclude?: Array<string | RegExp> | 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;