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: Remove redundant never default from readFragment with explicit generic #371

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

kitten
Copy link
Member

@kitten kitten commented Aug 18, 2024

Summary

All readFragment<Document>(data) calls receive explicit generics. However, they contained a = never default, which was entirely redundant.

Side-note: Any readFragment<Document>({}) are always valid. Unknown data is now accepted. This is unfortunate, but not fixeable without a second generic, which isn't possible in TS.

Set of changes

  • Remove = never from readFragment overloads with explicit Document generics

@kitten kitten requested a review from JoviDeCroock August 18, 2024 17:44
Copy link

changeset-bot bot commented Aug 18, 2024

🦋 Changeset detected

Latest commit: 328503f

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kitten kitten merged commit 15da5c3 into main Aug 18, 2024
2 checks passed
@kitten kitten deleted the fix/readfragment-generic-default branch August 18, 2024 18:04
@github-actions github-actions bot mentioned this pull request Aug 18, 2024
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