From 4c6de465fa660d091a417127ee522c5844e3b330 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Mon, 6 Sep 2021 08:19:10 +0900 Subject: [PATCH] Change type determination logic of type-only defineProps to follow vue v3.2.9. --- lib/utils/ts-ast-utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils/ts-ast-utils.js b/lib/utils/ts-ast-utils.js index f23a752e3..b801b6374 100644 --- a/lib/utils/ts-ast-utils.js +++ b/lib/utils/ts-ast-utils.js @@ -255,6 +255,7 @@ function inferRuntimeType(context, node, checked = new Set()) { case 'Map': case 'WeakSet': case 'WeakMap': + case 'Date': return [node.typeName.name] case 'Record': case 'Partial':