0.1.2 • Published 1 year ago
@the-minimal/error v0.1.2
Example
const AssertionError = error<string>("AssertionError");
// ..
if(typeof value !== "number") {
AssertionError("number", `Value ${value} should be of type number`);
}
Install
yarn add @the-minimal/error
Benchmark
- Blue = baseline
- Orange =
Error
- Green =
@the-minimal/error