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

refactor: better types for withRef #1054

Merged
merged 1 commit into from
Oct 12, 2021
Merged

refactor: better types for withRef #1054

merged 1 commit into from
Oct 12, 2021

Conversation

rabelloo
Copy link
Contributor

@rabelloo rabelloo commented Oct 11, 2021

Enables #1053

Purpose

Refactor withRef with more accurate types.

Approach

More closely match React types for function arguments, but keep the part that we want which is the return type.

Testing

N/A

Risks

None.

@rabelloo rabelloo requested a review from josokinas October 11, 2021 16:29
@rabelloo rabelloo self-assigned this Oct 11, 2021
@vercel
Copy link

vercel bot commented Oct 11, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/onfido-oss/castor/4xknVVPrJmFvAoRLpqF3oMJVR4ZS
✅ Preview: https://castor-git-refactor-withref-onfido-oss.vercel.app

@rabelloo rabelloo merged commit 8a3664d into main Oct 12, 2021
@rabelloo rabelloo deleted the refactor/withRef branch October 12, 2021 09:32
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