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 0fbc19f commit 958bbffCopy full SHA for 958bbff
packages/compiler-sfc/src/compileScript.ts
@@ -1967,15 +1967,14 @@ function inferRuntimeType(
1967
case 'TSParenthesizedType':
1968
return inferRuntimeType(node.typeAnnotation, declaredTypes)
1969
case 'TSUnionType':
1970
+ case 'TSIntersectionType':
1971
return [
1972
...new Set(
1973
[].concat(
1974
...(node.types.map(t => inferRuntimeType(t, declaredTypes)) as any)
1975
)
1976
1977
]
- case 'TSIntersectionType':
1978
- return ['Object']
1979
1980
case 'TSSymbolKeyword':
1981
return ['Symbol']
0 commit comments