vultix/ts-results
View on GitHub ↗ ★ 1,410 TypeScript
A typescript implementation of Rust's Result object.
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2023-10-31 · latest 2023-11-17
20082026
-
…to avoid external dependencies. If you don't mind, a quick google comes up with a couple: https://github.com/vultix/ts-results https://github.com/badrap/result
comment by oDot · 2023-11-17 · in Python errors as values: Comparing useful patterns from Rust and Go -
You might like https://github.com/vultix/ts-results -- no dependencies. (Beware maintainer is not active, https://github.com/vultix/ts-results/issues/37 )
comment by yencabulator · 2023-11-02 · in Unwrapit provides a way to handle errors in JS/TS -
Nicer way to go about this is `ts-results` which introduces the `Result` type, inspired by rust. https://github.com/vultix/ts-results
comment by joegaebel · 2023-10-31 · in Unwrapit provides a way to handle errors in JS/TS