Files
DefinitelyTyped/types/p-try/index.d.ts
Dimitri Benin 89e1856678 [p-try] introduce typings (#18586)
Add an optional extended description…
2017-08-04 17:17:51 -07:00

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>;