Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 245 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 245 Bytes

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