File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111[ ![ Total TypeScript] ( https://img.shields.io/badge/Types-100%25%20Safe-blue )] ( https://github.com/tarnishablec/thaterror )
1212[ ![ No Any] ( https://img.shields.io/badge/Any-None-success )] ( https://github.com/tarnishablec/thaterror )
1313
14- A concise, type-safe error handling toolkit for TypeScript inspired by Rust's thiserror. Use the
14+ A concise, type-safe error handling toolkit for TypeScript inspired by Rust's [ thiserror] ( https://github.com/dtolnay/thiserror ) . Use the
1515` @thaterror/core ` package to define domain-driven error families with zero boilerplate, then adopt
16- or serialize them with optional adapters (for example, a ` pino ` adapter is available).
16+ or serialize them with optional adapters (for example, a [ pino] ( https://github.com/pinojs/pino ) adapter is available).
1717
1818## The Core Value
1919
@@ -63,7 +63,7 @@ bun add @thaterror/pino-adapter pino
6363
6464See the individual package READMEs for development and testing instructions.
6565
66- ## Examples ✨ — ` Rust thiserror ` / ` @thaterror/core ` / ` Native Error `
66+ ## Comparison ✨ — ` Rust thiserror ` / ` @thaterror/core ` / ` Native Error `
6767
6868Rust (thiserror) 🦀
6969
@@ -116,7 +116,7 @@ throw App.NotFound('123');
116116// - Cost: minimal boilerplate with strong TypeScript typing.
117117```
118118
119- Use ` @thaterror/core ` with ` neverthrow ` — full Rust-like Result<T, E> experience 🧭
119+ Use ` @thaterror/core ` with [ neverthrow] ( https://github.com/supermacro/neverthrow ) — full Rust-like Result<T, E> experience 🧭
120120
121121``` ts
122122// Combine @thaterror/core (typed errors) with neverthrow's Result for ergonomic,
You can’t perform that action at this time.
0 commit comments