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(types): avoid inferring memo return type from key option #231

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

aleclarson
Copy link
Member

@aleclarson aleclarson commented Aug 30, 2024

Tip

The owner of this PR can publish a preview release by commenting /publish in this PR. Afterwards, anyone can try it out by running pnpm add radashi@pr<PR_NUMBER>.

Summary

Avoid inferring the memo return type from any of the given options, like the key callback.

See the added type tests for two examples.

Related issue, if any:

Closes #230

For any code change,

  • Related tests have been added or updated, if needed

Does this PR introduce a breaking change?

No

@aleclarson aleclarson merged commit 7b4656e into main Aug 30, 2024
8 checks passed
@aleclarson aleclarson deleted the fix/memo-return-type branch August 30, 2024 21:00
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.

memo return type is incorrectly inferred from key option
1 participant