typescript-tuple
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -95,3 +95,3 @@ import { Extends, Equal } from 'typescript-compare'; | ||
nonEmpty: ((..._: Reverse<Types>) => any) extends ((_: infer Last, ..._1: infer ReversedRest) => any) ? SingleTupleSet<Reverse<ReversedRest>, Prepend<Holder, [Last]>> : never; | ||
infinite: SplitInfiniteTuple<Types> extends [infer Finite, infer Infinite] ? Finite extends any[] ? Infinite extends (infer RepeatedElement)[] ? SingleTupleSet<Finite, [RepeatedElement][]> : never : never : never; | ||
infinite: SplitInfiniteTuple<Types> extends [infer Finite, infer Infinite] ? Finite extends any[] ? Infinite extends Array<infer RepeatedElement> ? SingleTupleSet<Finite, [RepeatedElement][]> : never : never : never; | ||
}[Types extends [] ? 'empty' : IsFinite<Types, 'nonEmpty', 'infinite'>]; | ||
@@ -98,0 +98,0 @@ export declare type FillTuple<Tuple extends any[], Replacement, Holder extends any[] = []> = { |
{ | ||
"name": "typescript-tuple", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Generics to work with tuples in TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
31114