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
Best,
Tricon
Bug: DataTable type definition
-
- Information
-
Who is online
Users browsing this forum: No registered users and 23 guests