type-plus
Advanced tools
Comparing version 1.11.0 to 1.12.0
{ | ||
"name": "type-plus", | ||
"description": "Provides additional types for `typescript`.", | ||
"version": "1.11.0", | ||
"version": "1.12.0", | ||
"homepage": "https://github.com/unional/type-plus", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -47,2 +47,3 @@ # type-plus | ||
- `Except<T, K>`: From `T`, pick a set of properties whose keys are not in the union `K`. This is the opposite of `Pick<T, K>` | ||
- `ExcludePropType<T, U>`: excludes type `U` from properties in `T`. | ||
@@ -58,2 +59,9 @@ - `PartialPick<T, U>`: makes the properties specified in `U` becomes optional. | ||
### Type assertion | ||
There are several type assertion functions inside `typeAssert`. | ||
- `isXXX(value)`: ensure typeof `value` is `XXX` | ||
- `noXXX(value)`: ensure typeof `value` does not contain `XXX`. i.e. cannot assign `XXX` to `value`. | ||
## Contribute | ||
@@ -60,0 +68,0 @@ |
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
28154
103