File tree 1 file changed +5
-2
lines changed
packages/compiler-sfc/src
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2129,7 +2129,7 @@ function inferRuntimeType(
2129
2129
case 'BigIntLiteral' :
2130
2130
return [ 'Number' ]
2131
2131
default :
2132
- return [ `UNKNOWN` ]
2132
+ return [ UNKNOWN_TYPE ]
2133
2133
}
2134
2134
2135
2135
case 'TSTypeReference' :
@@ -2177,13 +2177,15 @@ function inferRuntimeType(
2177
2177
declaredTypes
2178
2178
) . filter ( t => t !== 'null' )
2179
2179
}
2180
+ break
2180
2181
case 'Extract' :
2181
2182
if ( node . typeParameters && node . typeParameters . params [ 1 ] ) {
2182
2183
return inferRuntimeType (
2183
2184
node . typeParameters . params [ 1 ] ,
2184
2185
declaredTypes
2185
2186
)
2186
2187
}
2188
+ break
2187
2189
case 'Exclude' :
2188
2190
case 'OmitThisParameter' :
2189
2191
if ( node . typeParameters && node . typeParameters . params [ 0 ] ) {
@@ -2192,9 +2194,10 @@ function inferRuntimeType(
2192
2194
declaredTypes
2193
2195
)
2194
2196
}
2195
- // cannot infer, fallback to UNKNOWN: ThisParameterType
2197
+ break
2196
2198
}
2197
2199
}
2200
+ // cannot infer, fallback to UNKNOWN: ThisParameterType
2198
2201
return [ UNKNOWN_TYPE ]
2199
2202
2200
2203
case 'TSParenthesizedType' :
You can’t perform that action at this time.
0 commit comments