diff --git a/types/tabulator-tables/index.d.ts b/types/tabulator-tables/index.d.ts index 1eb5ccad0c..fdff24ff92 100644 --- a/types/tabulator-tables/index.d.ts +++ b/types/tabulator-tables/index.d.ts @@ -1175,7 +1175,7 @@ You can pass an optional additional property with sorter, sorterParams that shou | (( cell: CellComponent, onRendered: EmptyCallback, - success: ValueVoidCallback, + success: ValueBooleanCallback, cancel: ValueVoidCallback, editorParams: {}, ) => HTMLElement | false); diff --git a/types/tabulator-tables/tabulator-tables-tests.ts b/types/tabulator-tables/tabulator-tables-tests.ts index 64b41d2d32..1cae225a6e 100644 --- a/types/tabulator-tables/tabulator-tables-tests.ts +++ b/types/tabulator-tables/tabulator-tables-tests.ts @@ -519,3 +519,9 @@ options.headerSortTristate = true; colDef.formatter = 'rowSelection'; options.invalidOptionWarnings = false; + +colDef.editor = (cell, onRendered, success, cancel, editorParams) => { + const editor = document.createElement('input'); + const successful: boolean = success('test'); + return editor; +};