[React/Typescript] dataSrc prop in rowGroup of options not properly typed?
[React/Typescript] dataSrc prop in rowGroup of options not properly typed?
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
Hi,
thank you for finally publishing a version for react! Been looking forward to that for a while now.
I'm wondering whether the dataSrc prop of the rowGroup prop in the options object is correctly typed.
I'm trying to group by multiple columns per this example.
However when I look at the typing of this prop in VS Code, dataSrc is only defined as "number | string | undefined".
The compiler of course won't compile with an array of indices as in my use case and outlined by the example.
I have installed via npm:
1. datatables.net-dt
2. datatables.net-react
3. datatables.net-buttons-dt
4. datatables.net-buttons/js/buttons.html5
5. datatables.net-rowgroup-dt
Could that be a typing error?