Comparing version 2.1.4 to 2.1.5
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.1.5](https://github.com/bluelovers/ws-ts-type/compare/ts-type@2.1.4...ts-type@2.1.5) (2022-02-26) | ||
### ✨ Features | ||
* add `ITSToReadonlyArray` , `ITSToArray` ([f968c89](https://github.com/bluelovers/ws-ts-type/commit/f968c8945a2629095a1ffaa8fb3aad716c7ef374)) | ||
## [2.1.4](https://github.com/bluelovers/ws-ts-type/compare/ts-type@2.1.2...ts-type@2.1.4) (2022-01-12) | ||
@@ -8,0 +19,0 @@ |
export * from './generic'; | ||
export * from './helper'; | ||
export * from './helper/array/readonly'; | ||
export * from './helper/filter'; | ||
@@ -4,0 +5,0 @@ export * from './helper/infer'; |
@@ -0,2 +1,8 @@ | ||
/** | ||
* detect if T is a union | ||
*/ | ||
export declare type IsAUnion<T, Y = true, N = false, U = T> = U extends any ? ([T] extends [U] ? N : Y) : never; | ||
/** | ||
* detect if T is a single string literal | ||
*/ | ||
export declare type IsASingleStringLiteral<T extends string, Y = true, N = false> = string extends T ? N : [T] extends [never] ? N : IsAUnion<T, N, Y>; |
{ | ||
"name": "ts-type", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "add some typescript type and re-export some build-in typescript type", | ||
@@ -67,3 +67,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "76cf697a05ef4cb0518cefbe58def9113ad40a71" | ||
"gitHead": "e8c949105b230b7b3a956d1c0c8f35e21e9c150a" | ||
} |
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
266404
103
666