File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ class TableCell extends Block {
24
24
return undefined ;
25
25
}
26
26
27
+ next : this | null ;
28
+
27
29
cellOffset ( ) {
28
30
if ( this . parent ) {
29
31
return this . parent . children . indexOf ( this ) ;
@@ -56,15 +58,14 @@ class TableCell extends Block {
56
58
}
57
59
58
60
class TableRow extends Container {
61
+ children : LinkedList < TableCell > ;
62
+ next : this | null ;
63
+
59
64
checkMerge ( ) {
60
65
if ( super . checkMerge ( ) && this . next . children . head != null ) {
61
- // @ts -expect-error all children are table cells
62
66
const thisHead = this . children . head . formats ( ) ;
63
- // @ts -expect-error all children are table cells
64
67
const thisTail = this . children . tail . formats ( ) ;
65
- // @ts -expect-error all children are table cells
66
68
const nextHead = this . next . children . head . formats ( ) ;
67
- // @ts -expect-error all children are table cells
68
69
const nextTail = this . next . children . tail . formats ( ) ;
69
70
return (
70
71
thisHead . table === thisTail . table &&
@@ -81,7 +82,6 @@ class TableRow extends Container {
81
82
( this . children as LinkedList < TableCell > ) . forEach ( child => {
82
83
if ( child . next == null ) return ;
83
84
const childFormats = child . formats ( ) ;
84
- // @ts -expect-error
85
85
const nextFormats = child . next . formats ( ) ;
86
86
if ( childFormats . table !== nextFormats . table ) {
87
87
const next = this . splitAfter ( child ) ;
You can’t perform that action at this time.
0 commit comments