Open seriojca opened 1 year ago
I receive the following : NamedExoticComponent<CellProps<any, any>>' is not assignable to type 'CellComponent<any, any> when i place a React.memo in component attribute and have to write it component: Component as any
for it to be working, if that makes sense.
Can you share some code to demonstrate what is wrong ?
...keyColumn<any, 'id'>('id', { component: ExampleMemoComponent as any, columnData: 'id' }),
i have to make ExampleMemoComponent as any, otherwise it will give me errors
I have the same issue. if I simply try to reproduce the example here: https://react-datasheet-grid.netlify.app/docs/examples/implementing-select#final-result
I get a type error
But if I change the SelectComponent type to any (as mentioned by @seriojca above) then it no longer complains:
This approach worked for me.
Hey @seriojca , can you please be more explicit?