const AssertionError = error<string>("AssertionError");
// ..
if(typeof value !== "number") {
AssertionError("number", `Value ${value} should be of type number`);
}yarn add @the-minimal/error- Blue = baseline
- Orange =
Error - Green =
@the-minimal/error