Skip to content

@types/tabulator-tables not correct for 6.3.1 #4825

@awdorrin

Description

@awdorrin

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Possible BugA possible bug that needs investigation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions