Installation
npm install --save @types/promisify-node
Summary
This package contains type definitions for promisify-node (https://github.com/nodegit/promisify-node).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promisify-node.
index.d.ts
export = promisify;
/**
* Public API for Promisify. Will resolve modules names using `require`.
*
* @param {*} name - Can be a module name, object, or function.
* @param {Function} test - Optional function to identify async methods.
* @param {Boolean} noMutate - Optional set to true to avoid mutating the target.
* @returns {*} exports - The resolved value from require or passed in value.
*/
declare function promisify(name: string | Object | Function, test?: Function, noMutate?: boolean): any;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Borek Bernard.