mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-10 19:22:58 +08:00
9 lines
324 B
TypeScript
9 lines
324 B
TypeScript
// Type definitions for p-try 1.0
|
|
// Project: https://github.com/sindresorhus/p-try#readme
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = pTry;
|
|
|
|
declare function pTry<T>(cb: () => Promise<T> | PromiseLike<T> | T): Promise<T>;
|