UNPKG

237 BTypeScriptView Raw
1declare const niceTry: {
2 <T>(fn: () => T): T | undefined;
3 (val?: any): undefined;
4
5 promise<T>(fn: (() => PromiseLike<T>) | (() => T)): Promise<T | undefined>;
6 promise(val?: any): Promise<undefined>;
7};
8
9export = niceTry;
10
\No newline at end of file