Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[data grid] GridCellParams TS type does not include api even though the object actually does #14190

Closed
genepaul opened this issue Aug 13, 2024 · 2 comments · Fixed by #14201
Closed
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! typescript

Comments

@genepaul
Copy link
Contributor

genepaul commented Aug 13, 2024

Steps to reproduce

https://codesandbox.io/p/sandbox/14144-column-group-horizontal-borders-forked-9ctmlf

Steps:

  1. Visit the linked codesandbox
  2. Notice that TS is saying GridCellParams does not contain the api prop
  3. Also notice that the example works without errors (aside from TS)

Originally found in #14144

Current behavior

No response

Expected behavior

Need to update the GridCellParams TS type to include api: GridApi

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: GridCellParams api
Order ID: 0332927583

@genepaul genepaul added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 13, 2024
@github-actions github-actions bot added the component: data grid This is the name of the generic UI component, not the React module! label Aug 13, 2024
@michelengelen michelengelen changed the title GridCellParams TS type does not include api even though the object actually does [data grid] GridCellParams TS type does not include api even though the object actually does Aug 13, 2024
@michelengelen michelengelen added typescript and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 13, 2024
@michelengelen
Copy link
Member

Thanks for raising this @genepaul ... I did add it to the board! 👍🏼

Copy link

⚠️ This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

@genepaul: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! typescript
Projects
Status: 🆕 Needs refinement
Development

Successfully merging a pull request may close this issue.

2 participants