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
- Host: GitHub
- URL: https://github.com/bramsuurdje/try-catch-wrapper-ts
- Owner: BramSuurdje
- Created: 2025-02-26T16:39:55.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-26T16:47:49.000Z (3 months ago)
- Last Synced: 2025-02-26T16:53:14.739Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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());
```