An open API service indexing awesome lists of open source software.

https://github.com/bramsuurdje/try-catch-wrapper-ts

a simple wrapper for the try catch method in typescript
https://github.com/bramsuurdje/try-catch-wrapper-ts

Last synced: 3 months ago
JSON representation

a simple wrapper for the try catch method in typescript

Awesome Lists containing this project

README

        

a simple wrapper for the try catch method in typescript

## Installation

```bash
npm install try-catch-wrapper-ts
```

## Usage

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

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