Files
DefinitelyTyped/types/p-log/index.d.ts
Dimitri Benin 9a3ff8c20a [p-log] introduce typings (#18715)
* [p-log] introduce typings

* [p-log] change placement of type parameter
2017-08-14 11:12:56 -07:00

14 lines
371 B
TypeScript

// Type definitions for p-log 1.0
// Project: https://github.com/sindresorhus/p-log#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = pLog;
declare const pLog: pLog;
interface pLog {
(): <T>(value: T) => Promise<T>;
catch(): (value: any) => Promise<never>;
}