Installation
npm install --save @types/promise-hash
Summary
This package contains type definitions for promise-hash (https://github.com/mtimofiiv/promise-hash).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-hash.
index.d.ts
export = hash;
type PromiseHash = <T>(promiseHash: { [P in keyof T]: PromiseLike<T[P]> | T[P] }) => Promise<T>;
declare global {
interface PromiseConstructor {
hash: PromiseHash;
}
}
declare const hash: PromiseHash;
Additional Details
- Last updated: Tue, 07 Nov 2023 0939 GMT
- Dependencies: none
Credits
These definitions were written by Michael Shafir.