reason-guard
TypeScript library to build typeguards that explain their decisions
semantics
- A true reasonguard will provide no errors and at least one confirmation of what was checked.
- A false reasonguard will provide at least one error about what failed.
compatibility
-
isLiteral
may not work unless your project uses at least version 3.4 oftypescript
examples
- See the example guard tests