From 5fe244513a4488ff6c2e489d93df0a5e999eed29 Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Mon, 6 Sep 2021 08:30:52 +0900 Subject: [PATCH] Change type determination logic of type-only defineProps to follow vue v3.2.9. (#1620) --- 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':