Comparing version 0.1.7 to 0.1.8
@@ -60,2 +60,12 @@ import {Primitive} from './types'; | ||
export type ValueOfKey< | ||
TObject extends object, | ||
TKey extends keyof TObject | ||
> = TKey extends keyof TObject ? TObject[TKey] : never; | ||
export type ValueNotOfKey< | ||
TObject extends object, | ||
TKey extends keyof TObject | ||
> = ValueOfKey<TObject, Exclude<keyof TObject, TKey>>; | ||
// Keep or omit values by keys | ||
@@ -62,0 +72,0 @@ |
{ | ||
"name": "tslang", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "TypeScript Language Type Utilities.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
4220
108