Comparing version 0.1.11 to 0.2.0
@@ -169,2 +169,6 @@ /** | ||
export type Tuple<T, N extends number> = _Tuple<T, N>; | ||
/** | ||
* Makes all members of the tuple T optional | ||
*/ | ||
export type OptionalTuple<T extends unknown[]> = T extends [infer Head, ...infer Tail] ? [Head?, ...OptionalTuple<Tail>] : T; | ||
export {}; |
{ | ||
"name": "utilium", | ||
"version": "0.1.11", | ||
"version": "0.2.0", | ||
"description": "Typescript utilies", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -193,1 +193,6 @@ /** | ||
export type Tuple<T, N extends number> = _Tuple<T, N>; | ||
/** | ||
* Makes all members of the tuple T optional | ||
*/ | ||
export type OptionalTuple<T extends unknown[]> = T extends [infer Head, ...infer Tail] ? [Head?, ...OptionalTuple<Tail>] : T; |
33076
1001