Skip to content

[datagrid] Add typing to slot props #11687

@romgrk

Description

@romgrk

Currently all our slots are typed as React.JSXElementConstructor<any>. The downsides are:

  • It's harder for us to refactor without creating bugs
  • Ourselves and users don't get autocomplete & typechecking when using slots
  • If we release a breaking change, it won't cause a typecheck error.

I propose that we add typing to all our slots before the v7 release.

@mui/xgrid 👍 / 👎 ?

Search keywords:

Metadata

Metadata

Assignees

Labels

breaking changeIntroduces changes that are not backward compatible.scope: data gridChanges related to the data grid.v7.x

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions