@tool-belt/type-predicates
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Tests Coverage Quality Gate Status Security Rating Reliability Rating Maintainability Rating

@tool-belt/type-predicates

Installation

npm install @tool-belt/type-predicates

Contents

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 significantly 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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.02,246latest

Version History

VersionDownloads (Last 7 Days)Published
1.3.02,246
1.2.2150
1.2.11
1.2.076
1.1.073
1.0.11
1.0.0118

Package Sidebar

Install

npm i @tool-belt/type-predicates

Weekly Downloads

1,974

Version

1.3.0

License

MIT

Unpacked Size

50.5 kB

Total Files

6

Last publish

Collaborators

  • nhirschfeld