@stamhoofd/common-errors
v2.161.1
Published
Readme
Simple errors
@stamhoofd/common-errors contains the error classes shared by the browser and backend.
import { SimpleError, SimpleErrors } from '@stamhoofd/common-errors';Run pnpm stam test errors for tests and pnpm stam check typecheck @stamhoofd/common-errors
for production and test typechecking. Shared builds produce JavaScript in dist
and declarations in dist-types.
Errors accepts the structural ErrorData decoding contract without depending on
the encoding package. Encoding owns cross-package round-trip tests. All consumers
use the same workspace error implementation.
