-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Given:
table = headlessTable<Row>(this, {
columns: () => this.args.columns, // this.args.columns: ColumnConfig<Row>[]
data: () => this.args.data, // this.args.data: Row[]
plugins: [
RowSelection.with(() => {
return {
selection: [],
onSelect: (data) => { // Parameter 'data' implicitly has an 'any' type.
...
},
onDeselect: () => {},
};
}),
],
});I would hope that the first data argument of onSelect hook would give me correct type on the first argument (data) and not any. Or what would be the correct TS usage?
I can obviously just do:
onSelect: (data: T) => { ... }but that feels ... unnecessary?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels