fix(compile-sfc): add symbol judge in prop type checks. (#4594)

fix #4592
This commit is contained in:
ygj6
2021-09-17 01:45:55 +08:00
committed by GitHub
parent 06c5bf53ab
commit fcd5422b4a
3 changed files with 7 additions and 0 deletions

View File

@@ -1541,6 +1541,9 @@ function inferRuntimeType(
case 'TSIntersectionType':
return ['Object']
case 'TSSymbolKeyword':
return ['Symbol']
default:
return [`null`] // no runtime check
}