@6river/reason-guard 中文文档教程

发布于 3年前 浏览 26 项目主页 更新于 3年前

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 of typescript

examples

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 of typescript

examples

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文