mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 11:51:10 +08:00
14 lines
371 B
TypeScript
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>;
|
|
}
|