@@ -149,7 +149,7 @@ export function createRenderer<
149
149
} {
150
150
type HostVNode = VNode < HostNode , HostElement >
151
151
type HostVNodeChildren = VNodeChildren < HostNode , HostElement >
152
- type HostSuspsenseBoundary = SuspenseBoundary < HostNode , HostElement >
152
+ type HostSuspenseBoundary = SuspenseBoundary < HostNode , HostElement >
153
153
154
154
const {
155
155
insert : hostInsert ,
@@ -171,7 +171,7 @@ export function createRenderer<
171
171
container : HostElement ,
172
172
anchor : HostNode | null = null ,
173
173
parentComponent : ComponentInternalInstance | null = null ,
174
- parentSuspense : HostSuspsenseBoundary | null = null ,
174
+ parentSuspense : HostSuspenseBoundary | null = null ,
175
175
isSVG : boolean = false ,
176
176
optimized : boolean = false
177
177
) {
@@ -303,7 +303,7 @@ export function createRenderer<
303
303
container : HostElement ,
304
304
anchor : HostNode | null ,
305
305
parentComponent : ComponentInternalInstance | null ,
306
- parentSuspense : HostSuspsenseBoundary | null ,
306
+ parentSuspense : HostSuspenseBoundary | null ,
307
307
isSVG : boolean ,
308
308
optimized : boolean
309
309
) {
@@ -329,7 +329,7 @@ export function createRenderer<
329
329
container : HostElement ,
330
330
anchor : HostNode | null ,
331
331
parentComponent : ComponentInternalInstance | null ,
332
- parentSuspense : HostSuspsenseBoundary | null ,
332
+ parentSuspense : HostSuspenseBoundary | null ,
333
333
isSVG : boolean
334
334
) {
335
335
const tag = vnode . type as string
@@ -370,7 +370,7 @@ export function createRenderer<
370
370
container : HostElement ,
371
371
anchor : HostNode | null ,
372
372
parentComponent : ComponentInternalInstance | null ,
373
- parentSuspense : HostSuspsenseBoundary | null ,
373
+ parentSuspense : HostSuspenseBoundary | null ,
374
374
isSVG : boolean ,
375
375
start : number = 0
376
376
) {
@@ -392,7 +392,7 @@ export function createRenderer<
392
392
n1 : HostVNode ,
393
393
n2 : HostVNode ,
394
394
parentComponent : ComponentInternalInstance | null ,
395
- parentSuspense : HostSuspsenseBoundary | null ,
395
+ parentSuspense : HostSuspenseBoundary | null ,
396
396
isSVG : boolean ,
397
397
optimized : boolean
398
398
) {
@@ -491,10 +491,10 @@ export function createRenderer<
491
491
492
492
if ( dynamicChildren != null ) {
493
493
// children fast path
494
- const olddynamicChildren = n1 . dynamicChildren !
494
+ const oldDynamicChildren = n1 . dynamicChildren !
495
495
for ( let i = 0 ; i < dynamicChildren . length ; i ++ ) {
496
496
patch (
497
- olddynamicChildren [ i ] ,
497
+ oldDynamicChildren [ i ] ,
498
498
dynamicChildren [ i ] ,
499
499
el ,
500
500
null ,
@@ -522,7 +522,7 @@ export function createRenderer<
522
522
oldProps : any ,
523
523
newProps : any ,
524
524
parentComponent : ComponentInternalInstance | null ,
525
- parentSuspense : HostSuspsenseBoundary | null ,
525
+ parentSuspense : HostSuspenseBoundary | null ,
526
526
isSVG : boolean
527
527
) {
528
528
if ( oldProps !== newProps ) {
@@ -571,7 +571,7 @@ export function createRenderer<
571
571
container : HostElement ,
572
572
anchor : HostNode | null ,
573
573
parentComponent : ComponentInternalInstance | null ,
574
- parentSuspense : HostSuspsenseBoundary | null ,
574
+ parentSuspense : HostSuspenseBoundary | null ,
575
575
isSVG : boolean ,
576
576
optimized : boolean
577
577
) {
@@ -613,7 +613,7 @@ export function createRenderer<
613
613
container : HostElement ,
614
614
anchor : HostNode | null ,
615
615
parentComponent : ComponentInternalInstance | null ,
616
- parentSuspense : HostSuspsenseBoundary | null ,
616
+ parentSuspense : HostSuspenseBoundary | null ,
617
617
isSVG : boolean ,
618
618
optimized : boolean
619
619
) {
@@ -685,7 +685,7 @@ export function createRenderer<
685
685
container : HostElement ,
686
686
anchor : HostNode | null ,
687
687
parentComponent : ComponentInternalInstance | null ,
688
- parentSuspense : HostSuspsenseBoundary | null ,
688
+ parentSuspense : HostSuspenseBoundary | null ,
689
689
isSVG : boolean ,
690
690
optimized : boolean
691
691
) {
@@ -717,7 +717,7 @@ export function createRenderer<
717
717
container : HostElement ,
718
718
anchor : HostNode | null ,
719
719
parentComponent : ComponentInternalInstance | null ,
720
- parentSuspense : HostSuspsenseBoundary | null ,
720
+ parentSuspense : HostSuspenseBoundary | null ,
721
721
isSVG : boolean ,
722
722
optimized : boolean
723
723
) {
@@ -828,7 +828,7 @@ export function createRenderer<
828
828
suspense . fallbackTree = fallback
829
829
}
830
830
831
- function resolveSuspense ( suspense : HostSuspsenseBoundary ) {
831
+ function resolveSuspense ( suspense : HostSuspenseBoundary ) {
832
832
if ( __DEV__ ) {
833
833
if ( suspense . isResolved ) {
834
834
throw new Error (
@@ -861,7 +861,7 @@ export function createRenderer<
861
861
}
862
862
// move content from off-dom container to actual container
863
863
move ( subTree as HostVNode , container , anchor )
864
- const el = ( vnode . el = ( subTree as HostVNode ) . el as HostNode )
864
+ const el = ( vnode . el = ( subTree as HostVNode ) . el ! )
865
865
// suspense as the root node of a component...
866
866
if ( parentComponent && parentComponent . subTree === vnode ) {
867
867
parentComponent . vnode . el = el
@@ -892,7 +892,7 @@ export function createRenderer<
892
892
}
893
893
}
894
894
895
- function restartSuspense ( suspense : HostSuspsenseBoundary ) {
895
+ function restartSuspense ( suspense : HostSuspenseBoundary ) {
896
896
suspense . isResolved = false
897
897
const {
898
898
vnode,
@@ -919,7 +919,7 @@ export function createRenderer<
919
919
isSVG ,
920
920
optimized
921
921
)
922
- const el = ( vnode . el = ( fallbackTree as HostVNode ) . el as HostNode )
922
+ const el = ( vnode . el = ( fallbackTree as HostVNode ) . el ! )
923
923
// suspense as the root node of a component...
924
924
if ( parentComponent && parentComponent . subTree === vnode ) {
925
925
parentComponent . vnode . el = el
@@ -939,7 +939,7 @@ export function createRenderer<
939
939
container : HostElement ,
940
940
anchor : HostNode | null ,
941
941
parentComponent : ComponentInternalInstance | null ,
942
- parentSuspense : HostSuspsenseBoundary | null ,
942
+ parentSuspense : HostSuspenseBoundary | null ,
943
943
isSVG : boolean ,
944
944
optimized : boolean
945
945
) {
@@ -993,7 +993,7 @@ export function createRenderer<
993
993
container : HostElement ,
994
994
anchor : HostNode | null ,
995
995
parentComponent : ComponentInternalInstance | null ,
996
- parentSuspense : HostSuspsenseBoundary | null ,
996
+ parentSuspense : HostSuspenseBoundary | null ,
997
997
isSVG : boolean
998
998
) {
999
999
const instance : ComponentInternalInstance = ( initialVNode . component = createComponentInstance (
@@ -1073,7 +1073,7 @@ export function createRenderer<
1073
1073
function retryAsyncComponent (
1074
1074
instance : ComponentInternalInstance ,
1075
1075
asyncSetupResult : unknown ,
1076
- parentSuspense : HostSuspsenseBoundary ,
1076
+ parentSuspense : HostSuspenseBoundary ,
1077
1077
isSVG : boolean
1078
1078
) {
1079
1079
parentSuspense . deps --
@@ -1104,7 +1104,7 @@ export function createRenderer<
1104
1104
1105
1105
function setupRenderEffect (
1106
1106
instance : ComponentInternalInstance ,
1107
- parentSuspense : HostSuspsenseBoundary | null ,
1107
+ parentSuspense : HostSuspenseBoundary | null ,
1108
1108
initialVNode : HostVNode ,
1109
1109
container : HostElement ,
1110
1110
anchor : HostNode | null ,
@@ -1168,7 +1168,7 @@ export function createRenderer<
1168
1168
// to child component's vnode
1169
1169
updateHOCHostEl ( instance , nextTree . el )
1170
1170
}
1171
- // upated hook
1171
+ // updated hook
1172
1172
if ( instance . u !== null ) {
1173
1173
queuePostRenderEffect ( instance . u , parentSuspense )
1174
1174
}
@@ -1207,7 +1207,7 @@ export function createRenderer<
1207
1207
container : HostElement ,
1208
1208
anchor : HostNode | null ,
1209
1209
parentComponent : ComponentInternalInstance | null ,
1210
- parentSuspense : HostSuspsenseBoundary | null ,
1210
+ parentSuspense : HostSuspenseBoundary | null ,
1211
1211
isSVG : boolean ,
1212
1212
optimized : boolean = false
1213
1213
) {
@@ -1311,7 +1311,7 @@ export function createRenderer<
1311
1311
container : HostElement ,
1312
1312
anchor : HostNode | null ,
1313
1313
parentComponent : ComponentInternalInstance | null ,
1314
- parentSuspense : HostSuspsenseBoundary | null ,
1314
+ parentSuspense : HostSuspenseBoundary | null ,
1315
1315
isSVG : boolean ,
1316
1316
optimized : boolean
1317
1317
) {
@@ -1358,7 +1358,7 @@ export function createRenderer<
1358
1358
container : HostElement ,
1359
1359
parentAnchor : HostNode | null ,
1360
1360
parentComponent : ComponentInternalInstance | null ,
1361
- parentSuspense : HostSuspsenseBoundary | null ,
1361
+ parentSuspense : HostSuspenseBoundary | null ,
1362
1362
isSVG : boolean ,
1363
1363
optimized : boolean
1364
1364
) {
@@ -1464,7 +1464,7 @@ export function createRenderer<
1464
1464
const s2 = i // next starting index
1465
1465
1466
1466
// 5.1 build key:index map for newChildren
1467
- const keyToNewIndexMap : Map < any , number > = new Map ( )
1467
+ const keyToNewIndexMap : Map < string | number , number > = new Map ( )
1468
1468
for ( i = s2 ; i <= e2 ; i ++ ) {
1469
1469
const nextChild = ( c2 [ i ] = normalizeVNode ( c2 [ i ] ) )
1470
1470
if ( nextChild . key != null ) {
@@ -1613,7 +1613,7 @@ export function createRenderer<
1613
1613
function unmount (
1614
1614
vnode : HostVNode ,
1615
1615
parentComponent : ComponentInternalInstance | null ,
1616
- parentSuspense : HostSuspsenseBoundary | null ,
1616
+ parentSuspense : HostSuspenseBoundary | null ,
1617
1617
doRemove ?: boolean
1618
1618
) {
1619
1619
const {
@@ -1678,7 +1678,7 @@ export function createRenderer<
1678
1678
1679
1679
function unmountComponent (
1680
1680
instance : ComponentInternalInstance ,
1681
- parentSuspense : HostSuspsenseBoundary | null ,
1681
+ parentSuspense : HostSuspenseBoundary | null ,
1682
1682
doRemove ?: boolean
1683
1683
) {
1684
1684
const { bum, effects, update, subTree, um } = instance
@@ -1724,9 +1724,9 @@ export function createRenderer<
1724
1724
}
1725
1725
1726
1726
function unmountSuspense (
1727
- suspense : HostSuspsenseBoundary ,
1727
+ suspense : HostSuspenseBoundary ,
1728
1728
parentComponent : ComponentInternalInstance | null ,
1729
- parentSuspense : HostSuspsenseBoundary | null ,
1729
+ parentSuspense : HostSuspenseBoundary | null ,
1730
1730
doRemove ?: boolean
1731
1731
) {
1732
1732
suspense . isUnmounted = true
@@ -1739,7 +1739,7 @@ export function createRenderer<
1739
1739
function unmountChildren (
1740
1740
children : HostVNode [ ] ,
1741
1741
parentComponent : ComponentInternalInstance | null ,
1742
- parentSuspense : HostSuspsenseBoundary | null ,
1742
+ parentSuspense : HostSuspenseBoundary | null ,
1743
1743
doRemove ?: boolean ,
1744
1744
start : number = 0
1745
1745
) {
0 commit comments