ts-to-go
is a TypeScript utility library designed with a Golang flair. It provides a way to enhance error handling in your TypeScript applications. The main feature is a wrapper function that encapsulates both asynchronous and synchronous functions to return arrays containing both errors and results.
You can install any ts-to-go
package using npm or yarn with as the following commands:
npm i @ts-to-go/wrap-exception
# or
yarn add @ts-to-go/wrap-exception
Please refer to each package documentation:
This project is setup using NPM workspaces and Turborepo. Read more about it here:
From the root of the project:
- Set the right node and package manger versions:
nvm use
corepack prepare
- Install dependencies:
npm i
-
Make your changes in the package
-
Run build/test/lint for your changes:
npm run build-affected
npm run lint-affected
npm run test-affected