feat(types): deny unknown attributes on component by default (#1614)
close #1519
This commit is contained in:
@@ -18,7 +18,7 @@ import {
|
||||
SuspenseBoundary,
|
||||
queueEffectWithSuspense
|
||||
} from './components/Suspense'
|
||||
import { TeleportImpl } from './components/Teleport'
|
||||
import { TeleportImpl, TeleportVNode } from './components/Teleport'
|
||||
|
||||
export type RootHydrateFunction = (
|
||||
vnode: VNode<Node, Element>,
|
||||
@@ -202,7 +202,7 @@ export function createHydrationFunctions(
|
||||
} else {
|
||||
nextNode = (vnode.type as typeof TeleportImpl).hydrate(
|
||||
node,
|
||||
vnode,
|
||||
vnode as TeleportVNode,
|
||||
parentComponent,
|
||||
parentSuspense,
|
||||
optimized,
|
||||
|
||||
Reference in New Issue
Block a user