From 8eb65fa05eb30a367e8bc52b77655d649eb3be1a Mon Sep 17 00:00:00 2001 From: Yunyoung LEE Date: Wed, 18 May 2022 11:30:06 +0900 Subject: [PATCH] fix(compiler-sfc): type-only defineProps does not recognize Promise (fix #5941) --- packages/compiler-sfc/src/compileScript.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index fdd748237ca..74c89e88d47 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -1810,6 +1810,7 @@ function inferRuntimeType( case 'WeakSet': case 'WeakMap': case 'Date': + case 'Promise': return [node.typeName.name] case 'Record': case 'Partial':