react-table-example icon indicating copy to clipboard operation
react-table-example copied to clipboard

UseTableCellProps render method should allow to pass function as an argument.

Open pavlo-kuziv opened this issue 3 years ago • 1 comments

React table doc states that the render method can accept a function as an argument but it is not supported by the current type definition: render: (type: 'Cell' | string, userProps?: object) => ReactNode;

pavlo-kuziv avatar Nov 08 '21 13:11 pavlo-kuziv

Take a look at https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56704

If there's a bug (and I'm not saying that there isn't) then it's in the types, not in this repo. If you can give me an example of how you'd like it to work, then I'll take a look at fixing it, but I'm tight on time so to be honest I'm not going to invest that much in this otherwise. There are already easy ways to avoid this situation.

ggascoigne avatar Nov 08 '21 16:11 ggascoigne