@types/pify
Type definitions for pify from https://www.github.com/DefinitelyTyped/DefinitelyTyped
Last updated 10 years ago by types .
MIT · Original npm · Tarball · package.json
$ cnpm install @types/pify 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/pify

Summary

This package contains type definitions for pify (https://github.com/sindresorhus/pify).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pify.

index.d.ts

// 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;

Additional Details

  • Last updated: Wed, 07 Jul 2021 17:02:29 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Sam Verschueren, Michael Müller, and Christoph Müller.

Current Tags

  • 5.0.1                                ...           latest (5 years ago)
  • 3.0.2                                ...           ts2.0 (8 years ago)
  • 3.0.2                                ...           ts2.1 (8 years ago)
  • 3.0.2                                ...           ts2.2 (8 years ago)
  • 3.0.2                                ...           ts2.3 (8 years ago)
  • 3.0.2                                ...           ts2.4 (8 years ago)
  • 3.0.2                                ...           ts2.5 (8 years ago)
  • 3.0.2                                ...           ts2.6 (8 years ago)
  • 3.0.2                                ...           ts2.7 (8 years ago)
  • 3.0.2                                ...           ts2.8 (8 years ago)
  • 3.0.2                                ...           ts2.9 (8 years ago)
  • 3.0.2                                ...           ts3.0 (8 years ago)
  • 3.0.2                                ...           ts3.1 (8 years ago)
  • 3.0.2                                ...           ts3.2 (8 years ago)
  • 5.0.0                                ...           ts3.3 (5 years ago)
  • 5.0.0                                ...           ts3.4 (5 years ago)
  • 5.0.0                                ...           ts3.5 (5 years ago)
  • 5.0.1                                ...           ts3.6 (5 years ago)
  • 5.0.1                                ...           ts3.7 (5 years ago)
  • 5.0.1                                ...           ts3.8 (5 years ago)
  • 5.0.1                                ...           ts3.9 (5 years ago)
  • 5.0.1                                ...           ts4.0 (5 years ago)
  • 5.0.1                                ...           ts4.1 (5 years ago)
  • 5.0.1                                ...           ts4.2 (5 years ago)
  • 5.0.1                                ...           ts4.3 (5 years ago)
  • 5.0.1                                ...           ts4.4 (5 years ago)
  • 5.0.1                                ...           ts4.5 (5 years ago)
  • 5.0.1                                ...           ts4.6 (5 years ago)
  • 5.0.1                                ...           ts4.7 (5 years ago)
  • 5.0.1                                ...           ts4.8 (5 years ago)
  • 5.0.1                                ...           ts4.9 (5 years ago)

16 Versions

  • 5.0.1                                ...           5 years ago
  • 5.0.0                                ...           5 years ago
  • 3.0.2                                ...           8 years ago
  • 3.0.1                                ...           8 years ago
  • 3.0.0                                ...           9 years ago
  • 0.0.28                                ...           10 years ago
  • 0.0.27                                ...           10 years ago
  • 0.0.26-alpha                                ...           10 years ago
  • 0.0.25-alpha                                ...           10 years ago
  • 0.0.24-alpha                                ...           10 years ago
  • 0.0.23-alpha                                ...           10 years ago
  • 0.0.22-alpha                                ...           10 years ago
  • 0.0.21-alpha                                ...           10 years ago
  • 0.0.20-alpha                                ...           10 years ago
  • 0.0.15-alpha                                ...           10 years ago
  • 0.0.14-alpha                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |