diff --git a/packages/frontend/src/type.ts b/packages/frontend/src/type.ts index e1cea3936c..f8604a3771 100644 --- a/packages/frontend/src/type.ts +++ b/packages/frontend/src/type.ts @@ -7,5 +7,5 @@ export type WithRequired = T & { [P in K]-?: T[P] }; export type WithNonNullable = T & { [P in K]-?: NonNullable }; -type _TupleOf = R['length'] extends N ? R : _TupleOf; -export type Tuple = N extends N ? number extends N ? T[] : _TupleOf : never; +type TupleOf = R['length'] extends N ? R : TupleOf; +export type Tuple = N extends N ? number extends N ? T[] : TupleOf : never;