Comparing version 0.1.6 to 0.1.7
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.1.7](https://github.com/BlackGlory/hotypes/compare/v0.1.6...v0.1.7) (2021-04-25) | ||
### Features | ||
* improve PartialKeys ([ef60fd2](https://github.com/BlackGlory/hotypes/commit/ef60fd2dbaf87a564b28dc5d101918fbb58364d9)) | ||
### [0.1.6](https://github.com/BlackGlory/hotypes/compare/v0.1.5...v0.1.6) (2021-04-25) | ||
@@ -7,0 +14,0 @@ |
@@ -1,3 +0,5 @@ | ||
export declare type PartialKeys<T extends object, Keys> = { | ||
[P in keyof T]: P extends Keys ? T[P] | undefined : T[P]; | ||
export declare type PartialKeys<T extends object, Keys extends keyof T> = { | ||
[P in Exclude<keyof T, Keys>]: T[P]; | ||
} & { | ||
[P in Keys]?: T[P]; | ||
}; |
{ | ||
"name": "hotypes", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Higer order types for TypeScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
20341
186