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] GridColDef valueGetter method's value parameter is always never #12927

Closed
hkfi opened this issue Apr 26, 2024 · 4 comments
Closed
Labels
component: data grid This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists typescript

Comments

@hkfi
Copy link

hkfi commented Apr 26, 2024

Steps to reproduce

Link to live example: (required)

https://codesandbox.io/p/sandbox/quizzical-elbakyan-yhcy5p

Steps:

  1. Go to Demo.tsx
  2. Look at valueGetter method's value parameter. It is typed never, but we should expect the type of the value of the field.

Current behavior

The valueGetter method's value parameter is never.

Expected behavior

We should expect the type of the value of the field instead of never. In this case we should expect a number.

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: GridColDef, valueGetter, never

@hkfi hkfi added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 26, 2024
@michelengelen
Copy link
Member

related to #12914

cc @cherniavskii

@michelengelen michelengelen changed the title GridColDef valueGetter method's value parameter is always never [data grid] GridColDef valueGetter method's value parameter is always never Apr 27, 2024
@michelengelen michelengelen added the component: data grid This is the name of the generic UI component, not the React module! label Apr 27, 2024
@michelengelen
Copy link
Member

possible fix for this: #12914 (comment)

@michelengelen
Copy link
Member

I will close this issue, as it is basically a duplicate of #12914 ... just for a different method.

@michelengelen michelengelen added duplicate This issue or pull request already exists and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Apr 30, 2024
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.

@hkfi: 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
component: data grid This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists typescript
Projects
None yet
Development

No branches or pull requests

2 participants