Add generics to type data and newData in DataTableRowEditSaveEvent, DataTableRowEditCancelEvent and DataTableRowEditInitEvent interfaces. DataTable component #7194
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
The current definition is:
An example handling
@row-edit-save
inDataTable
component with current typescript definitions:I think adding a generic for typing
data
andnewData
properties will improve DX:This situation of having
data
andnewData
happens in other data structures related with theDataTable
component such as:DataTableCellEditCompleteEvent
,DataTableCellEditCancelEvent
,DataTableCellEditInitEvent
,DataTableRowCollapseEvent
,DataTableRowExpandEvent
among others.Finally but not least, we don't get code suggestion or liting in template when accesing information from a slot prop. Like so:
We're not getting suggestions when accessing data in template, that increases the change of introduce bugs. It'll really nice that we can also bring a solution to this.
It was discussed here some time ago: Discussion
The text was updated successfully, but these errors were encountered: