Comparing version 1.2.0 to 1.3.0
@@ -10,3 +10,3 @@ import {Builtin} from './common'; | ||
type _DeepPartial<T> = | ||
T extends Builtin ? T | ||
T extends Builtin ? Exclude<T, undefined> | ||
: T extends Promise<infer U> ? Promise<DeepPartial<U>> | ||
@@ -21,3 +21,3 @@ : T extends Map<infer K, infer V> ? Map<K, DeepPartial<V>> | ||
: T extends (infer U)[] ? DeepPartial<U>[] | ||
: { [P in keyof T]?: DeepPartial<Exclude<T[P], undefined>> }; | ||
: { [P in keyof T]?: DeepPartial<T[P]> }; | ||
@@ -29,3 +29,3 @@ /** | ||
type _DeepBuildable<T> = | ||
T extends Builtin ? T | ||
T extends Builtin ? Exclude<T, undefined> | ||
: T extends Promise<infer U> ? Promise<DeepBuildable<U>> | ||
@@ -40,3 +40,3 @@ : T extends Map<infer K, infer V> ? Map<K, DeepBuildable<V>> | ||
: T extends (infer U)[] ? DeepBuildable<U>[] | ||
: { -readonly [P in keyof T]?: DeepBuildable<Exclude<T[P], undefined>> }; | ||
: { -readonly [P in keyof T]?: DeepBuildable<T[P]> }; | ||
@@ -48,3 +48,3 @@ /** | ||
type _DeepRequired<T> = | ||
T extends Builtin ? T | ||
T extends Builtin ? Exclude<T, undefined> | ||
: T extends Promise<infer U> ? Promise<DeepRequired<U>> | ||
@@ -59,3 +59,3 @@ : T extends Map<infer K, infer V> ? Map<K, DeepRequired<V>> | ||
: T extends (infer U)[] ? DeepRequired<U>[] | ||
: { [P in keyof T]-?: DeepRequired<Exclude<T[P], undefined>> }; | ||
: { [P in keyof T]-?: DeepRequired<T[P]> }; | ||
@@ -68,3 +68,3 @@ | ||
type _DeepReadonly<T> = | ||
T extends Builtin ? T | ||
T extends Builtin ? Exclude<T, undefined> | ||
: T extends Promise<infer U> ? Promise<DeepReadonly<U>> | ||
@@ -79,3 +79,3 @@ : T extends Map<infer K, infer V> ? Map<K, DeepReadonly<V>> | ||
: T extends (infer U)[] ? DeepReadonly<U>[] | ||
: { readonly [P in keyof T]: DeepReadonly<Exclude<T[P], undefined>> }; | ||
: { readonly [P in keyof T]: DeepReadonly<T[P]> }; | ||
@@ -87,3 +87,3 @@ /** | ||
type _DeepWritable<T> = | ||
T extends Builtin ? T | ||
T extends Builtin ? Exclude<T, undefined> | ||
: T extends Promise<infer U> ? Promise<DeepWritable<U>> | ||
@@ -98,3 +98,3 @@ : T extends Map<infer K, infer V> ? Map<K, DeepWritable<V>> | ||
: T extends (infer U)[] ? DeepWritable<U>[] | ||
: { -readonly [P in keyof T]: DeepWritable<Exclude<T[P], undefined>> }; | ||
: { -readonly [P in keyof T]: DeepWritable<T[P]> }; | ||
@@ -116,2 +116,2 @@ /** | ||
: T extends (infer U)[] ? DeepNullish<U>[] | null | undefined | ||
: { [P in keyof T]: DeepNullish<T[P]>| null | undefined }; | ||
: { [P in keyof T]: DeepNullish<T[P]> | null | undefined }; |
@@ -15,3 +15,3 @@ { | ||
], | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"types": "lib/index.d.ts", | ||
@@ -18,0 +18,0 @@ "repository": "git@github.com:panates/ts-gems.git", |
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
32468