We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a7572c commit a3721e1Copy full SHA for a3721e1
packages/compiler-sfc/src/compileScript.ts
@@ -2069,15 +2069,14 @@ function inferRuntimeType(
2069
case 'TSParenthesizedType':
2070
return inferRuntimeType(node.typeAnnotation, declaredTypes)
2071
case 'TSUnionType':
2072
+ case 'TSIntersectionType':
2073
return [
2074
...new Set(
2075
[].concat(
2076
...(node.types.map(t => inferRuntimeType(t, declaredTypes)) as any)
2077
)
2078
2079
]
- case 'TSIntersectionType':
2080
- return ['Object']
2081
2082
case 'TSSymbolKeyword':
2083
return ['Symbol']
0 commit comments