From 991d62322fa67d50b7ae8b0460f294d6b39f9711 Mon Sep 17 00:00:00 2001 From: Yunyoung LEE Date: Thu, 19 May 2022 08:34:52 +0900 Subject: [PATCH] fix(compiler-sfc): type-only defineProps does not recognize Promise (fix #5941) (#5943) --- 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 fdd74823..74c89e88 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':