@waiting/shared-types
Advanced tools
Comparing version 23.16.0 to 23.17.0
@@ -29,3 +29,3 @@ /** Get the first element */ | ||
export type isInLiteralTuple<T extends (string | number | symbol)[], K extends string | number | symbol> = [Extract<T[number], K>] extends [never] ? false : true; | ||
export type TupleToUnion<T extends any[]> = T[number]; | ||
export type TupleToUnion<T extends any[] | readonly any[]> = T[number]; | ||
export type Reverse<Tuple extends any[]> = Reverse_<Tuple, []>; | ||
@@ -32,0 +32,0 @@ type Reverse_<Tuple extends any[], Result extends any[]> = { |
{ | ||
"name": "@waiting/shared-types", | ||
"author": "waiting", | ||
"version": "23.16.0", | ||
"version": "23.17.0", | ||
"description": "shared typescript types", | ||
@@ -70,3 +70,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "ffe0fc0eb9a7803af6e79a43f5cdabc598197226" | ||
"gitHead": "aa31a7a6971b1cabbd7e0d93a04956721fdac759" | ||
} |
@@ -54,3 +54,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
export type TupleToUnion<T extends any[]> = T[number] | ||
export type TupleToUnion<T extends any[] | readonly any[]> = T[number] | ||
@@ -57,0 +57,0 @@ |
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
76687