fix(compiler-sfc): type-only defineProps does not recognize Promise (fix #5941) (#5943)

This commit is contained in:
Yunyoung LEE 2022-05-19 08:34:52 +09:00 committed by GitHub
parent 7c8f4578e9
commit 991d62322f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1810,6 +1810,7 @@ function inferRuntimeType(
case 'WeakSet':
case 'WeakMap':
case 'Date':
case 'Promise':
return [node.typeName.name]
case 'Record':
case 'Partial':