Bug: DataTable type definition

UI Components for React
Post Reply
Tricon
Posts: 4
Joined: 09 Mar 2018, 10:23

09 Mar 2018, 10:38

Hello,

there seems to be a bug in PrimeReact's current version (1.4.1) affecting the DataTable.d.ts file.
Running TypeScript 2.7.2, the errors show up on lines 71 and 72 of the DataTableProps interface definition.
The affected methods are "onColumnResizeEnd" and "onSort" - they have a wrong argument definition, resulting in TS errors:

DataTable.d.ts(71,34): error TS7031: Binding element 'any' implicitly has an 'any' type.
DataTable.d.ts(71,46): error TS7031: Binding element 'number' implicitly has an 'any' type.
DataTable.d.ts(72,25): error TS7031: Binding element 'string' implicitly has an 'any' type.
DataTable.d.ts(72,44): error TS7031: Binding element 'number' implicitly has an 'any' type.
DataTable.d.ts(72,67): error TS7031: Binding element 'any' implicitly has an 'any' type.

Would love to see a quick fix :mrgreen:

Best,
Tricon

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

14 Mar 2018, 14:54

We fixed for next release.

Tricon
Posts: 4
Joined: 09 Mar 2018, 10:23

14 Mar 2018, 17:43

Fantastic, thanks!

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests