u/madkarma_

results-ts: Rust's Result and Option types, for TypeScript

results-ts: Rust's Result and Option types, for TypeScript

I recently started learning Rust and fell in love with their "errors as values" system, so I spent some time developing a TypeScript library that mimics Rust's Result and Option enums. Yes, I'm aware that there are many, many other libraries out there that do this (some of which I took inspiration from), but many are either type-only, abandoned, or just not feature complete. I'm not saying mine is better or anything, that's up to the user. I hope someone will find it useful :)

github.com
u/madkarma_ — 12 days ago