Comparing version 1.2.25 to 1.2.26
@@ -6,2 +6,24 @@ # Change Log | ||
## [1.2.26](https://github.com/bluelovers/ws-ts-type/compare/ts-type@1.2.25...ts-type@1.2.26) (2020-07-26) | ||
### 🐛 Bug Fixes | ||
* **record:** fix `ITSMergeBoth<T, U>` ([d74791b](https://github.com/bluelovers/ws-ts-type/commit/d74791b2bbfbfe0312b7a4089795c9108d428829)) | ||
### ✨ Features | ||
* **record:** add `ITSKeyIsPartialOfRecord` ([4bc0f3d](https://github.com/bluelovers/ws-ts-type/commit/4bc0f3dcc5d7c918d120984774ea2e6a06ad03b7)) | ||
* add `ITSMergeBoth<T, U>` for handle https://github.com/microsoft/TypeScript/issues/35627 ([f474976](https://github.com/bluelovers/ws-ts-type/commit/f474976fe1dd2314d071300505741934ff014200)) | ||
### 🔖 Miscellaneous | ||
* . ([1bc7728](https://github.com/bluelovers/ws-ts-type/commit/1bc7728f433ee4126f17a44c4fe024bf4e6c1603)) | ||
## [1.2.25](https://github.com/bluelovers/ws-ts-type/compare/ts-type@1.2.24...ts-type@1.2.25) (2020-07-09) | ||
@@ -8,0 +30,0 @@ |
@@ -14,1 +14,5 @@ /** | ||
export declare type ITSKeyOfRecordExtractToKey<Base, Type> = ITSValueOf<ITSRecordExtractToKey<Base, Type>>; | ||
/** | ||
* try check key is partial of record | ||
*/ | ||
export declare type ITSKeyIsPartialOfRecord<T, K extends keyof T> = Omit<T, K> extends T ? K : never; |
@@ -46,2 +46,11 @@ /** | ||
/** | ||
* @example | ||
* type Test1 = { id: number, code: string } | ||
* type Test2 = { id: string, code: number } | ||
* type Test3 = ITSMergeBoth<Test1, Test2> | ||
* export const x: Test3 = { id: "bob", code: "bob" } | ||
* @see https://github.com/microsoft/TypeScript/issues/35627 | ||
*/ | ||
export declare type ITSMergeBoth<T, U> = ITSPickBothDiff<T, U> & Pick<T | U, ITSKeyofBothSame<T, U>>; | ||
/** | ||
* pick K and mark as Required | ||
@@ -48,0 +57,0 @@ */ |
{ | ||
"name": "ts-type", | ||
"version": "1.2.25", | ||
"version": "1.2.26", | ||
"description": "add some typescript type and re-export some build-in typescript type", | ||
@@ -52,3 +52,3 @@ "keywords": [ | ||
"dependencies": { | ||
"ts-toolbelt": "^6.10.11", | ||
"ts-toolbelt": "^6.13.28", | ||
"typedarray-dts": "^1.0.0" | ||
@@ -59,3 +59,3 @@ }, | ||
}, | ||
"gitHead": "141a2a73d1f53a0229f81c88346af2bd03c4255c" | ||
"gitHead": "d88cb4538f62d58638f85c5195311d77f06f0220" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
204956
457
Updatedts-toolbelt@^6.13.28