npm.io
1.3.2 • Published 2 years ago

@types/promise-hash

Licence
MIT
Version
1.3.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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.