chore(types): disambiguate the `Comment` type in hydration.ts (#12009)

This commit is contained in:
Boshen 2024-09-24 18:00:39 +08:00 committed by GitHub
parent a177092754
commit 5d9e81d3da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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 <transition appear>