Skip to content

BramSuurdje/try-catch-wrapper-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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());

About

a simple wrapper for the try catch method in typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published