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

[TypeScript] Fix useResourceDefinition return type #9852

Merged
merged 1 commit into from
May 16, 2024

Conversation

slax57
Copy link
Contributor

@slax57 slax57 commented May 16, 2024

Problem

useResourceDefinition used to return Omit<ResourceDefinition, 'name'> which is wrong (because name is actually present in the returned value most of the time) and causes issues in existing code using that hook.

Solution

Change the return type to be ResourceDefinition.

@fzaninotto fzaninotto merged commit 9779733 into next May 16, 2024
13 checks passed
@fzaninotto fzaninotto deleted the fix-useResourceDefinition-return-type branch May 16, 2024 15:37
@fzaninotto fzaninotto added this to the 5.0.0 milestone May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review v5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants