@types/nice-try
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

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

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/nice-try

Weekly Downloads

7,795

Version

2.1.2

License

MIT

Unpacked Size

3 kB

Total Files

5

Last publish

Collaborators

  • types