From: Boshen Date: Tue, 24 Sep 2024 10:00:39 +0000 (+0800) Subject: chore(types): disambiguate the `Comment` type in hydration.ts (#12009) X-Git-Tag: v3.5.9~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d9e81d3da38b04549ff33b7004201c3ce83d274;p=thirdparty%2Fvuejs%2Fcore.git chore(types): disambiguate the `Comment` type in hydration.ts (#12009) --- diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index 3cde4377e6..82972e1717 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