mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 22:44:18 +08:00
14 lines
415 B
TypeScript
14 lines
415 B
TypeScript
// Type definitions for p-tap 1.0
|
|
// Project: https://github.com/sindresorhus/p-tap#readme
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = pTap;
|
|
|
|
declare const pTap: pTap;
|
|
|
|
interface pTap {
|
|
<T>(fn: (value: T) => any): (value: T) => Promise<T>;
|
|
catch(fn: (value: any) => any): (value: any) => Promise<never>;
|
|
}
|