@waiting/shared-types
Advanced tools
Comparing version 20.2.0 to 20.4.0
@@ -5,2 +5,3 @@ /** Get the first element */ | ||
export declare type TupleTail<T extends unknown[]> = T extends [] ? [] : T extends [unknown] ? [] : T extends [unknown, ...infer U] ? U : unknown[]; | ||
export declare type TupleShift<T extends unknown[]> = TupleTail<T>; | ||
/** Get the last element */ | ||
@@ -7,0 +8,0 @@ export declare type TupleLast<T extends any[]> = T[TupleTail<T>['length']]; |
{ | ||
"name": "@waiting/shared-types", | ||
"author": "waiting", | ||
"version": "20.2.0", | ||
"version": "20.4.0", | ||
"description": "shared typescript types", | ||
@@ -66,3 +66,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "29a16033633f6d2de6e62deed11e96a76a1a0508" | ||
"gitHead": "2c118f644ff9d29a953f836f4bc530836e478eb3" | ||
} |
@@ -15,2 +15,4 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
export type TupleShift<T extends unknown[]> = TupleTail<T> | ||
/** Get the last element */ | ||
@@ -17,0 +19,0 @@ export type TupleLast<T extends any[]> = T[TupleTail<T>['length']] |
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
61704
1070