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>(
129129type BaseTypes = string | number | boolean | Node | Window
130130
131131// 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 ]
133133 ? T [ 1 ] extends T [ 2 ] ? never : true
134134 : true
135135
@@ -145,10 +145,10 @@ type UnwrapRefSimple<T> = T extends
145145 | Element
146146 ? T
147147 : T extends Array < infer V >
148- ? Tupple < T > extends never ? Array < V > : UnwrapTupple < T >
148+ ? IsTuple < T > extends true ? UnwrapTuple < T > : Array < V >
149149 : T extends object ? UnwrappedObject < T > : T
150150
151- export type UnwrapTupple < T > = { [ P in keyof T ] : T [ P ] } & {
151+ export type UnwrapTuple < T > = { [ P in keyof T ] : T [ P ] } & {
152152 length : number
153153 [ Symbol . iterator ] : any
154154 [ Symbol . unscopables ] : any
You can’t perform that action at this time.
0 commit comments