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 dbe7109 commit 2a10511Copy full SHA for 2a10511
packages/compiler-sfc/src/compileScript.ts
@@ -1976,15 +1976,14 @@ function inferRuntimeType(
1976
case 'TSParenthesizedType':
1977
return inferRuntimeType(node.typeAnnotation, declaredTypes)
1978
case 'TSUnionType':
1979
+ case 'TSIntersectionType':
1980
return [
1981
...new Set(
1982
[].concat(
1983
...(node.types.map(t => inferRuntimeType(t, declaredTypes)) as any)
1984
)
1985
1986
]
- case 'TSIntersectionType':
1987
- return ['Object']
1988
1989
case 'TSSymbolKeyword':
1990
return ['Symbol']
0 commit comments