@karmaniverous/entity-tools
Advanced tools
Comparing version 0.6.4 to 0.6.5
@@ -231,2 +231,4 @@ /** | ||
* | ||
* If `T` has `string` index signature, properties will be `| undefined`. | ||
* | ||
* @typeParam T - The type to make properties optional. | ||
@@ -238,4 +240,4 @@ * @typeParam U - The properties to make optional. | ||
type MakeOptional<T extends object, U extends keyof T> = { | ||
[P in keyof T]: P extends U ? T[P] | undefined : T[P]; | ||
}; | ||
[P in keyof T as P extends U ? never : P]: T[P]; | ||
} & Partial<Pick<T, U>>; | ||
@@ -242,0 +244,0 @@ /** |
@@ -129,3 +129,3 @@ { | ||
"types": "dist/index.d.ts", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"dependencies": { | ||
@@ -132,0 +132,0 @@ "radash": "^12.1.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
33597
787