diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index b7e4c0ea778..d97765275a9 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -1976,6 +1976,7 @@ function inferRuntimeType( case 'TSParenthesizedType': return inferRuntimeType(node.typeAnnotation, declaredTypes) case 'TSUnionType': + case 'TSIntersectionType': return [ ...new Set( [].concat( @@ -1983,8 +1984,6 @@ function inferRuntimeType( ) ) ] - case 'TSIntersectionType': - return ['Object'] case 'TSSymbolKeyword': return ['Symbol']