try-catch-wrapper-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

a simple wrapper for the try catch method in typescript

Installation

npm install try-catch-wrapper-ts

Usage

import { tryCatch } from "try-catch-wrapper-ts";

const { data, error } = await tryCatch(someFunction());

Package Sidebar

Install

npm i try-catch-wrapper-ts

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.29 kB

Total Files

4

Last publish

Collaborators

  • bramsuurdje