type-guards icon indicating copy to clipboard operation
type-guards copied to clipboard

Simple utility for runtime type checking which also assigns the correct type if used with TypeScript.

Results 23 type-guards issues
Sort by recently updated
recently updated
newest added

This begins to address #4 but is no longer a full solution.

With some of the recent changes that have been merged, at your convenience, would it be possible to publish a new library release to NPM? X-Ref: https://www.npmjs.com/package/type-guards No rush or...

Symbols are great for special values where "null" and/or "undefined" already represent a valid value. Since they are unique, there is no fear of "what if the consumer wants _exactly_...

enhancement
help wanted

With types: ```ts type A = { a: number } type B = { b: number } type C = A & B ``` With type guards: ```ts const isA...

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

Bumps [pathval](https://github.com/chaijs/pathval) from 1.1.0 to 1.1.1. Release notes Sourced from pathval's releases. v1.1.1 Fixes a security issue around prototype pollution. Commits db6c3e3 chore: v1.1.1 7859e0e Merge pull request #60 from...

dependencies

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2. Release notes Sourced from glob-parent's releases. v5.1.2 Bug Fixes eliminate ReDoS (#36) (f923116) Changelog Sourced from glob-parent's changelog. 5.1.2 (2021-03-06) Bug Fixes eliminate ReDoS...

dependencies

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies