[EuiBasicTable] onChange
parameter type unable to be determined leads to any
#4011
Labels
onChange
parameter type unable to be determined leads to any
#4011
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 toany
which causes TypeScript to complain. NeitherCriteria<T>
orCriteriaWithPagination<T>
are exported.onChange
param has to be explicitly typed.e.g.
const onTableChange: EuiBasicTableProps<TypeOfItem>['onChange'] = (param) => { ...
Param is incorrectly set as
any
.The text was updated successfully, but these errors were encountered: