Skip to content

Commit 56f7327

Browse files
🤖 Merge PR DefinitelyTyped#73367 fix(@types/tabulator-tables) Add Promise<void> to deleteRow in @types/tabulator-tables by @thearchitect3344
1 parent c724554 commit 56f7327

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎types/tabulator-tables/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2895,7 +2895,7 @@ declare class Tabulator {
28952895
getRowFromPosition: (position: number, activeOnly?: boolean) => RowComponent;
28962896

28972897
/** You can delete any row in the table using the deleteRow function. */
2898-
deleteRow: (index: RowLookup | RowLookup[]) => void;
2898+
deleteRow: (index: RowLookup | RowLookup[]) => Promise<void>;
28992899

29002900
/**
29012901
* You can add a row to the table using the addRow function.

‎types/tabulator-tables/tabulator-tables-tests.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ table.blockRedraw();
692692
table.restoreRedraw();
693693

694694
table.getRows("visible");
695-
table.deleteRow([15, 7, 9]);
695+
table.deleteRow([15, 7, 9]).then(() => {});
696696

697697
table.addColumn({} as ColumnDefinition).then(() => {});
698698

0 commit comments

Comments
 (0)