fix(compiler-sfc): defineProps infer TSParenthesizedType (#4147)
This commit is contained in:
@@ -1646,6 +1646,8 @@ function inferRuntimeType(
|
||||
}
|
||||
return [`null`]
|
||||
|
||||
case 'TSParenthesizedType':
|
||||
return inferRuntimeType(node.typeAnnotation, declaredTypes)
|
||||
case 'TSUnionType':
|
||||
return [
|
||||
...new Set(
|
||||
@@ -1654,7 +1656,6 @@ function inferRuntimeType(
|
||||
) as any)
|
||||
)
|
||||
]
|
||||
|
||||
case 'TSIntersectionType':
|
||||
return ['Object']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user