-
Notifications
You must be signed in to change notification settings - Fork 874
Description
Describe the bug
@types/tabulator-tables is not correct for the latest API definitions in 6.3.1
Tabulator Info
- Which version of Tabulator are you using? 6.3.1
function signatures in tabulator code:
setFilter(field, type, value, params)
addFilter(field, type, value, params)
definitions in @types/tabulator-tables/index.d.ts:
setFilter: (
p1: string | Filter[] | any[] | ((data: any, filterParams: any) => boolean),
p2?: FilterType | {},
value?: any,
filterParams?: FilterParams,
) => void;
addFilter: FilterFunction;
export type FilterFunction = (field: string, type: FilterType, value: any, filterParams?: FilterParams) => void;
as a result, I am getting errors trying to use addFilter to add a function callback in order to have more than one filter.
My assumption is that FilterFunction should be updated to match the definition in setFilter.
Or, there should be a way to disable @types/tabulator-tables (maybe there is, but I haven't found it yet)