@fastkit/ts-type-utils
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "@fastkit/ts-type-utils", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "ts-type-utils", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -23,7 +23,4 @@ /** Convert union to intersection type */ | ||
*/ | ||
export type IfEquals<X, Y, A, B> = (<T>() => T extends X ? 1 : 2) extends < | ||
T, | ||
>() => T extends Y ? 1 : 2 | ||
? A | ||
: B; | ||
export type IfEquals<X, Y, A, B> = | ||
(<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? A : B; | ||
@@ -88,7 +85,7 @@ /** Retrieve writable member names from the structure by union type */ | ||
: // eslint-disable-next-line @typescript-eslint/ban-types | ||
T extends object | ||
? { | ||
[P in keyof T]?: DeepPartial<T[P]>; | ||
} | ||
: T; | ||
T extends object | ||
? { | ||
[P in keyof T]?: DeepPartial<T[P]>; | ||
} | ||
: T; | ||
@@ -95,0 +92,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
4790
85