UNPKG

@types/nice-try

Version:
29 lines (21 loc) 835 B
# Installation > `npm install --save @types/nice-try` # Summary This package contains type definitions for nice-try (https://github.com/electerious/nice-try). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nice-try. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nice-try/index.d.ts) ````ts declare const niceTry: { <T>(fn: () => T): T | undefined; (val?: any): undefined; promise<T>(fn: (() => PromiseLike<T>) | (() => T)): Promise<T | undefined>; promise(val?: any): Promise<undefined>; }; export = niceTry; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 09:09:39 GMT * Dependencies: none # Credits These definitions were written by [Richie Bendall](https://github.com/Richienb).