Files
Dimitri Benin ad7bc57897 [p-lazy] introduce typings (#18590)
* [p-lazy] introduce typings

* [p-lazy] remove unnecessary TypeScript version restriction

* [p-lazy] add test for reject ctor param
2017-08-02 15:18:21 -07:00

11 lines
352 B
TypeScript

// Type definitions for p-lazy 1.0
// Project: https://github.com/sindresorhus/p-lazy#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = PLazy;
declare class PLazy<T> extends Promise<T> {
static from<T>(fn: () => T | PromiseLike<T>): PLazy<T>;
}