mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-28 10:30:31 +00:00
* [p-lazy] introduce typings * [p-lazy] remove unnecessary TypeScript version restriction * [p-lazy] add test for reject ctor param
11 lines
352 B
TypeScript
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>;
|
|
}
|