Skip to content

Rust-inspired and fully typed Enum with powerful pattern matching in typescript.

License

Notifications You must be signed in to change notification settings

hyf0/tagged-enum

Repository files navigation

tagged-enum

NPM version

Rust-inspired and strong typed Enum built on Tagged Union in TypeScript.

Features

  • (Exhaustive) Pattern matching
  • Ensure correctness by TypeScript compiler
  • Find errors in compile time

Usages

See https://github.com/hyf0/tagged-enum/tree/main/tests

About

Rust-inspired and fully typed Enum with powerful pattern matching in typescript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published