Skip to content

Commit 9492390

Browse files
committed
Remove unnecessary expect error directives
1 parent 2309dfd commit 9492390

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

formats/table.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class TableCell extends Block {
2424
return undefined;
2525
}
2626

27+
next: this | null;
28+
2729
cellOffset() {
2830
if (this.parent) {
2931
return this.parent.children.indexOf(this);
@@ -56,15 +58,14 @@ class TableCell extends Block {
5658
}
5759

5860
class TableRow extends Container {
61+
children: LinkedList<TableCell>;
62+
next: this | null;
63+
5964
checkMerge() {
6065
if (super.checkMerge() && this.next.children.head != null) {
61-
// @ts-expect-error all children are table cells
6266
const thisHead = this.children.head.formats();
63-
// @ts-expect-error all children are table cells
6467
const thisTail = this.children.tail.formats();
65-
// @ts-expect-error all children are table cells
6668
const nextHead = this.next.children.head.formats();
67-
// @ts-expect-error all children are table cells
6869
const nextTail = this.next.children.tail.formats();
6970
return (
7071
thisHead.table === thisTail.table &&
@@ -81,7 +82,6 @@ class TableRow extends Container {
8182
(this.children as LinkedList<TableCell>).forEach(child => {
8283
if (child.next == null) return;
8384
const childFormats = child.formats();
84-
// @ts-expect-error
8585
const nextFormats = child.next.formats();
8686
if (childFormats.table !== nextFormats.table) {
8787
const next = this.splitAfter(child);

0 commit comments

Comments
 (0)