@waiting/shared-types
Advanced tools
Comparing version 4.3.0 to 4.4.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [4.4.0](https://github.com/waitingsong/shared-types/compare/v4.3.0...v4.4.0) (2020-06-30) | ||
### Features | ||
* **types:** add types, set deprecated types ([79e1f17](https://github.com/waitingsong/shared-types/commit/79e1f1718de825ad67407a40994f8f3452b51821)) | ||
# [4.3.0](https://github.com/waitingsong/shared-types/compare/v4.2.0...v4.3.0) (2020-06-21) | ||
@@ -8,0 +19,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 4.2.0 | ||
* @version 4.3.0 | ||
* @author waiting | ||
@@ -8,0 +8,0 @@ * @license MIT |
@@ -0,4 +1,16 @@ | ||
/** | ||
* @deprecated use `TupleHead` instead | ||
*/ | ||
export declare type Head<Tuple extends any[]> = Tuple extends [infer H, ...any[]] ? H : never; | ||
/** | ||
* @deprecated use `TupleTail` instead | ||
*/ | ||
export declare type Tail<Tuple extends any[]> = ((...x: Tuple) => void) extends ((h: any, ...rest: infer R) => void) ? R : never; | ||
/** | ||
* @deprecated use `TupleUnshift` instead | ||
*/ | ||
export declare type Unshift<Tuple extends any[], Element> = ((h: Element, ...tuple: Tuple) => void) extends (...x: infer R) => void ? R : never; | ||
/** | ||
* @deprecated use `TupleLast` instead | ||
*/ | ||
export declare type Last<Tuple extends any[]> = { | ||
@@ -14,3 +26,9 @@ 1: Tuple[0]; | ||
export declare type ToTuple<T> = T extends any[] ? T : any[]; | ||
/** | ||
* @deprecated use `TuplePush` instead | ||
*/ | ||
export declare type Push<Tuple extends any[], Element, R = Reverse<Tuple>, T extends any[] = ToTuple<R>> = Reverse<Unshift<T, Element>>; | ||
/** | ||
* @deprecated use `TupleConcat` instead | ||
*/ | ||
export declare type Concat<Tuple1 extends any[], Tuple2 extends any[], R = Reverse<Tuple1>, T extends any[] = ToTuple<R>> = Concat_<T, Tuple2>; | ||
@@ -17,0 +35,0 @@ declare type Concat_<Tuple1 extends any[], Tuple2 extends any[]> = { |
@@ -6,1 +6,2 @@ export * from './alias'; | ||
export * from './union2tuple'; | ||
export * from './tuple'; |
@@ -6,1 +6,2 @@ export * from './alias'; | ||
export * from './union2tuple'; | ||
export * from './tuple'; |
{ | ||
"name": "@waiting/shared-types", | ||
"author": "waiting", | ||
"version": "4.3.0", | ||
"version": "4.4.0", | ||
"description": "shared typescript types", | ||
@@ -74,3 +74,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "c17f9abe6d932c281f8b6360e88ec7d835a066ff" | ||
"gitHead": "20c611b5eece54cbe8c6ce57aeb069ee656337be" | ||
} |
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
17183
23
241