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

[BC Break] Rename duplicate types to allow type emission from react-admin #5257

Merged
merged 3 commits into from
Sep 15, 2020

Conversation

fzaninotto
Copy link
Member

Problem

We have name conflicts in ra-core and ra-ui-materialui (Sort, Filter and Navigation exist twice, once as types in ra-core, once as components in ra-ui-material-ui).

The react-admin packages reexports all the exports from both ra-core and ra-ui-materialui. The conflicts prevent the TypeScript compilation.

Solution

We have no other solution but to rename one of the exports. As the TypeScript migration isn't finished, I think it's less painful to rename the types than the components.

It's a slight BC break for developers who started importing types directly from ra-core - which is not documented.

Besides, the current types are not well enough tested, as the react-admin package doesn't emit them. So they're probably false, and will need further changes. We should not worry about changing these types for now.

Refs #4505

@fzaninotto fzaninotto added the RFR Ready For Review label Sep 15, 2020
@djhi djhi merged commit 7fba75d into next Sep 15, 2020
@djhi djhi deleted the emit-types branch September 15, 2020 15:33
@Luwangel Luwangel added this to the 3.9.0 milestone Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants