errgo-ts
Version:
A lightweight error handling library inspired by Go and Rust.
8 lines (7 loc) • 299 B
TypeScript
import { coerceError } from "./coerce-error.js";
import { propagateError } from "./propagate-error.js";
import { safeTry } from "./safe-try.js";
import scope from "./scope.js";
import type { Result } from "./types.js";
export { coerceError, propagateError, safeTry, scope };
export type { Result };