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

Narrow the type prop returned from the getCollectionProps helper #562

Conversation

AMEH64
Copy link
Contributor

@AMEH64 AMEH64 commented Apr 2, 2024

I updated the type definitions for the getCollectionProps helper function to better narrow the type prop that is returned. This resolves #561.

image image

I also corrected the URL to the docs in the getCollectionProps helper function's JSDoc comment.

The reference URL in the getCollectionProps helper function documentation was outdated and incorrect. This commit updates the URL in the documentation comments to correctly point to the getCollectionProps section of the conform guide, enhancing code readability and understanding.
Update the type definitions for the `getCollectionProps` helper to fix widening issues with the `type` prop that is returned.
@AMEH64 AMEH64 marked this pull request as ready for review April 2, 2024 16:34
Copy link
Owner

@edmundhung edmundhung left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

@edmundhung edmundhung merged commit 53776b1 into edmundhung:main Apr 9, 2024
2 checks passed
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.

type prop returned from the getCollectionProps helper is widened
2 participants