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

Fix Fields Record Type Parameter #9092

Merged
merged 3 commits into from Aug 14, 2023
Merged

Fix Fields Record Type Parameter #9092

merged 3 commits into from Aug 14, 2023

Conversation

djhi
Copy link
Contributor

@djhi djhi commented Jul 11, 2023

Fixes #9102

@djhi djhi added RFR Ready For Review WIP Work In Progress and removed RFR Ready For Review labels Jul 11, 2023
Copy link
Contributor

@slax57 slax57 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me.

However:

  • I see you kept a default type to any for all methods and components linked to Create (because contrary to the others it defaults to RaRecord without the id field). Can't we improve these default types too?
  • I tried to compile the EE packages with this version and I got weirds TS errors with ra-navigation. You might want to investigate them to make sure this is not a regression that might impact our users

@slax57
Copy link
Contributor

slax57 commented Jul 17, 2023

This should also fix #9102

@djhi djhi added RFR Ready For Review and removed WIP Work In Progress labels Aug 14, 2023
@djhi djhi changed the title Fix RecordType generics Fix Fields Record Type Parameter Documentation Aug 14, 2023
@djhi djhi changed the title Fix Fields Record Type Parameter Documentation Fix Fields Record Type Parameter Aug 14, 2023
@fzaninotto fzaninotto merged commit 1985c5e into master Aug 14, 2023
10 checks passed
@fzaninotto fzaninotto deleted the improve-types branch August 14, 2023 11:49
@djhi djhi added this to the 4.13.0 milestone Aug 14, 2023
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.

FieldProps not accepting an interface as generic
3 participants