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

Export PublicFieldProps and InjectedFieldProps types (so devs can use them to define their own field components) #6219

Merged
merged 1 commit into from
Apr 29, 2021

Conversation

jtomaszewski
Copy link
Contributor

In our admin app, we create a lot of our own custom *Field components. When defining them, we need to add typescript definitions for props like addLabel?: boolean, which aren't used directly by the field component, but by the components wrapping it (e.g. Labeled).

All props like that are currently nicely defined in react-admin as PublicFieldProps or InjectedFieldProps, but unfortunately we can't import them, as they aren't exported by the library.

This PR exports them, so they can be used.

… use them to define their own field components)
@fzaninotto fzaninotto merged commit dec80a5 into marmelab:master Apr 29, 2021
@fzaninotto
Copy link
Member

Thanks!

@fzaninotto fzaninotto added this to the 3.15 milestone Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants