feat(types): deny unknown attributes on component by default (#1614)
close #1519
This commit is contained in:
@@ -53,7 +53,7 @@ import {
|
||||
queueEffectWithSuspense,
|
||||
SuspenseImpl
|
||||
} from './components/Suspense'
|
||||
import { TeleportImpl } from './components/Teleport'
|
||||
import { TeleportImpl, TeleportVNode } from './components/Teleport'
|
||||
import { isKeepAlive, KeepAliveContext } from './components/KeepAlive'
|
||||
import { registerHMR, unregisterHMR, isHmrUpdating } from './hmr'
|
||||
import {
|
||||
@@ -477,8 +477,8 @@ function baseCreateRenderer(
|
||||
)
|
||||
} else if (shapeFlag & ShapeFlags.TELEPORT) {
|
||||
;(type as typeof TeleportImpl).process(
|
||||
n1,
|
||||
n2,
|
||||
n1 as TeleportVNode,
|
||||
n2 as TeleportVNode,
|
||||
container,
|
||||
anchor,
|
||||
parentComponent,
|
||||
|
||||
Reference in New Issue
Block a user