JSPM

@tool-belt/type-predicates

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7003
  • Score
    100M100P100Q147149F
  • License MIT

Collection of performant type-guard utilities

Package Exports

  • @tool-belt/type-predicates

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tool-belt/type-predicates) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Tests Coverage Quality Gate Status Security Rating Reliability Rating Maintainability Rating

@tool-belt/type-predicates

This package includes the following:

  • a comprehensive collection of performant and flexible type-guards, that can function as a drop-in replacement for the type-guards included in the NodeJS builtin utils/types module - with better typing.
  • a comprehensive collection of type assertions covering all type-guards included in the package.
  • isUnion, createTypeGuard and createTypeAssertion utilities for the composition of type-guards and assertions.
  • supports ES modules and tree shaking, i.e., works great with module bundlers such as Webpack for the browser.

See the docs for details.