You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the TS type declarations use type GridItem = unknown; for the item type in all types/interfaces. It would be great if the types would use generics where the item type could default to GridItem (unknown) but it would be able to be overridden in app code when declaring data providers or renderers for example, so that you don't need to explicitly cast the unknown to something else to be able to use item references with TS.
I think all types that use GridItem (directly or nested) should have generics for setting item type.
Description
Currently the TS type declarations use
type GridItem = unknown;
for the item type in all types/interfaces. It would be great if the types would use generics where the item type could default to GridItem (unknown) but it would be able to be overridden in app code when declaring data providers or renderers for example, so that you don't need to explicitly cast theunknown
to something else to be able to use item references with TS.I think all types that use GridItem (directly or nested) should have generics for setting item type.
e.g.
Expected code for accessing props on custom item type
Actually needed code for accessing props on custom item type
The text was updated successfully, but these errors were encountered: