Currently if trying to use Table via a React wrapper for example TS forces the renderItem parameter type to plain object and will complain if you try to override the type to more specific type in the function signature. The only way to set the proper item type now is to create a local variable in the renderItem method and cast it to your item type like this:
Currently if trying to use Table via a React wrapper for example TS forces the
renderItem
parameter type to plainobject
and will complain if you try to override the type to more specific type in the function signature. The only way to set the proper item type now is to create a local variable in the renderItem method and cast it to your item type like this:With generics TS should be able to infer the type based on type of items given.