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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataGridPro] 5.10.0 no exported types: GridColumns, GridRowId, GridSelectionModel, GridValueGetterParams #4840

Closed
2 tasks done
keemor opened this issue May 11, 2022 · 4 comments
Labels
bug 馃悰 Something doesn't work typescript

Comments

@keemor
Copy link

keemor commented May 11, 2022

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 馃槸

Hi,

In data-grid-pro 5.7.0 we're using types GridColumns, GridRowId, GridSelectionModel, GridValueGetterParams.

Now they are not exported

image

Could you guide which way I should go?
I was looking here #3287 , but looks like it should be still exported

Cheers,

Order ID 馃挸 (optional)

40461

@keemor keemor added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 11, 2022
@keemor keemor changed the title @mui/x-data-grid-pro 5.10.0 no exported types: GridColumns, GridRowId, GridSelectionModel, GridValueGetterParams [DataGridPro] 5.10.0 no exported types: GridColumns, GridRowId, GridSelectionModel, GridValueGetterParams May 11, 2022
@alexfauquette alexfauquette added bug 馃悰 Something doesn't work typescript and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels May 12, 2022
@alexfauquette
Copy link
Member

I have the same problem in VSCode: warning about types not exported by pro package.

But that's a false positive because types are exported. For example here is a code sandbox reusing GridColumns from v5.10.0

https://codesandbox.io/s/basiccolumnsgrid-material-demo-forked-mows9t?file=/demo.tsx

@keemor
Copy link
Author

keemor commented May 12, 2022

You're right, I also checked on CBS https://codesandbox.io/s/basicdetailpanels-material-demo-forked-y0gwso?file=/demo.tsx

I did:
npm un @mui/x-data-grid-pro
npm i -D @mui/x-data-grid-pro

And it works, checking on CBS is a must!
Thanks!

@alexfauquette
Copy link
Member

I like when answering an issue solves my side problems :)

@jewseppi
Copy link

GridSelectionModel is no loner exported (v6.9.2) the new export is GridRowSelectionModel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 馃悰 Something doesn't work typescript
Projects
None yet
Development

No branches or pull requests

3 participants