type-plus
Advanced tools
Comparing version 1.31.1 to 1.31.2
{ | ||
"name": "type-plus", | ||
"version": "1.31.1", | ||
"version": "1.31.2", | ||
"description": "Provides additional types for `typescript`.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/unional/type-plus", |
@@ -103,3 +103,2 @@ # type-plus | ||
- `assertType.noXXX(value)`: ensure typeof `value` does not contain `XXX`. i.e. cannot assign `XXX` to `value`. | ||
- `assertType.hasProperty(value, prop)`: assert `value` has property `prop`. This will pick the correct union type. | ||
- `typeAssert.*` (deprecated) replaced by `assertType`. | ||
@@ -121,2 +120,3 @@ - `typeAssertion<T>()`: creates a type assertion function of type `T` | ||
- `hasKey()`: function of `HasKey`. | ||
- `hasProperty(value, prop)`: assert `value` has property `prop`. This will pick the correct union type. | ||
- `pick(obj, ...props)`: pick properties from `obj`. | ||
@@ -123,0 +123,0 @@ - `omit(obj, ...props)`: omit properties from `obj`. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146807