@6river/reason-guard 中文文档教程
reason-guard
用于构建解释其决定的类型保护的 TypeScript 库
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
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
更多