Comparing version 0.1.3 to 0.1.4
@@ -19,2 +19,6 @@ import {Primitive} from './types'; | ||
export type ValueNotWithType<TObject extends object, TValue> = { | ||
[K in keyof TObject]: TObject[K] extends TValue ? never : TObject[K] | ||
}[keyof TObject]; | ||
// Keep or omit values by keys | ||
@@ -24,3 +28,3 @@ | ||
TObject extends object, | ||
TKey extends keyof TObject | ||
TKey | ||
> = TObject extends object | ||
@@ -32,3 +36,3 @@ ? Pick<TObject, Extract<keyof TObject, TKey>> | ||
TObject extends object, | ||
TKey extends keyof TObject | ||
TKey | ||
> = TObject extends object | ||
@@ -35,0 +39,0 @@ ? Pick<TObject, Exclude<keyof TObject, TKey>> |
{ | ||
"name": "tslang", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"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
3251
64