Invalid "sortField" property type in Vue and type definition files #681
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
This issue is related to #647. In that issue, @richardmward pointed that
sortField
prop ofDataTable
component was declared asString
in the .vue file - that was fixed in version 3.0.2. However, the same issue is present inTableHeader
andColumn
components. Also,Column.d.ts
file hassortField
defined asstring
, instead ofstring | Function
.The same issue is also present in
DataTable
,TableHeader
andColumn
components of version 2.x - also in their corresponding type declaration files.Refering to TypeScript definition files, it might be better to define it as
string | ((item: any) => any)
, in order to give a little more information about function's signature.Thank you very much for your time.
The text was updated successfully, but these errors were encountered: