File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export function toRef<T extends object, K extends keyof T>(
129
129
type BaseTypes = string | number | boolean | Node | Window
130
130
131
131
// Super simple tuple checker
132
- type Tupple < T extends Array < any > > = T [ 0 ] extends T [ 1 ]
132
+ type IsTuple < T extends Array < any > > = T [ 0 ] extends T [ 1 ]
133
133
? T [ 1 ] extends T [ 2 ] ? never : true
134
134
: true
135
135
@@ -145,10 +145,10 @@ type UnwrapRefSimple<T> = T extends
145
145
| Element
146
146
? T
147
147
: T extends Array < infer V >
148
- ? Tupple < T > extends never ? Array < V > : UnwrapTupple < T >
148
+ ? IsTuple < T > extends true ? UnwrapTuple < T > : Array < V >
149
149
: T extends object ? UnwrappedObject < T > : T
150
150
151
- export type UnwrapTupple < T > = { [ P in keyof T ] : T [ P ] } & {
151
+ export type UnwrapTuple < T > = { [ P in keyof T ] : T [ P ] } & {
152
152
length : number
153
153
[ Symbol . iterator ] : any
154
154
[ Symbol . unscopables ] : any
You can’t perform that action at this time.
0 commit comments