// Type definitions for nice-try 2.1 // Project: https://github.com/electerious/nice-try // Definitions by: Richie Bendall // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare const niceTry: { (fn: () => T): T | undefined; (val?: any): undefined; promise(fn: (() => PromiseLike) | (() => T)): Promise; promise(val?: any): Promise; }; export = niceTry;