From 5d9e81d3da38b04549ff33b7004201c3ce83d274 Mon Sep 17 00:00:00 2001 From: Boshen Date: Tue, 24 Sep 2024 18:00:39 +0800 Subject: [PATCH] chore(types): disambiguate the `Comment` type in hydration.ts (#12009) --- packages/runtime-core/src/hydration.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index 3cde4377e..82972e171 100644 --- a/packages/runtime-core/src/hydration.ts +++ b/packages/runtime-core/src/hydration.ts @@ -1,8 +1,8 @@ import { - Comment, Fragment, Static, Text, + Comment as VComment, type VNode, type VNodeHook, createTextVNode, @@ -195,7 +195,7 @@ export function createHydrationFunctions( nextNode = nextSibling(node) } break - case Comment: + case VComment: if (isTemplateNode(node)) { nextNode = nextSibling(node) // wrapped