OliverBrotchie / optionals

Rust-like error handling and options for TypeScript and Deno!
MIT License
178 stars 8 forks source link

Hard Typing #2

Closed OliverBrotchie closed 3 years ago

OliverBrotchie commented 3 years ago

Splits the API into Soft and Hard types. Hard types allow for rust-like exhaustive matching! See READMEs for more details.

Criticism and reviews are welcome!

OliverBrotchie commented 3 years ago

Perhaps improving type hinting of certain functions by using this library might be an improvement.

ljharb commented 3 years ago

Heads up that adding stuff bumps the minor version, not the patch version.