fix(compile-sfc): add symbol judge in prop type checks. (#4594)
fix #4592
This commit is contained in:
@@ -1541,6 +1541,9 @@ function inferRuntimeType(
|
||||
case 'TSIntersectionType':
|
||||
return ['Object']
|
||||
|
||||
case 'TSSymbolKeyword':
|
||||
return ['Symbol']
|
||||
|
||||
default:
|
||||
return [`null`] // no runtime check
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user