When using EuiBasicTableProps<T>['onChange'] type - onChange type has multiple options
(criteria: Criteria<T>) => void; | (criteria: CriteriaWithPagination<T>) => void; | undefined
This prevents the onChange parameters from being typed correctly and is implicitly set to any which causes TypeScript to complain. Neither Criteria<T> or CriteriaWithPagination<T> are exported. onChange param has to be explicitly typed.
e.g.
const onTableChange: EuiBasicTableProps<TypeOfItem>['onChange'] = (param) => { ...
Param is incorrectly set as any.
When using
EuiBasicTableProps<T>['onChange']type -onChangetype has multiple options(criteria: Criteria<T>) => void; | (criteria: CriteriaWithPagination<T>) => void; | undefinedThis prevents the
onChangeparameters from being typed correctly and is implicitly set toanywhich causes TypeScript to complain. NeitherCriteria<T>orCriteriaWithPagination<T>are exported.onChangeparam has to be explicitly typed.e.g.
const onTableChange: EuiBasicTableProps<TypeOfItem>['onChange'] = (param) => { ...Param is incorrectly set as
any.