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: Type for options in autodetected renderer was incorrectly inferring any passed type #527

Merged
merged 1 commit into from Jan 8, 2021

Conversation

mpeyper
Copy link
Member

@mpeyper mpeyper commented Jan 8, 2021

Changed renderHook in ReactHooksRenderer type to not use a generic for options but rather the react specific RendererOptions.

Moved ReactHooksRenderer into react specific types as all auto-detected renders are react renderers. All modules are currently exporting both the shared types and the react types so this a non-breaking change.

Checklist:

  • Ready to be merged

…ing any passed type

Changed `renderHook` in `ReactHooksRenderer` type to not use a generic for options but rather the react specific `RendererOptions`.

Moved `ReactHooksRenderer` into react specific types as all auto-detected renders are react renderers.  All modules are currently exporting both the shared types and the react types so this a non-breaking change.
@codecov
Copy link

codecov bot commented Jan 8, 2021

Codecov Report

Merging #527 (08922dd) into beta (f6096ba) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##              beta      #527   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines          186       186           
  Branches        27        27           
=========================================
  Hits           186       186           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6096ba...08922dd. Read the comment docs.

@joshuaellis joshuaellis merged commit 4786242 into beta Jan 8, 2021
@joshuaellis
Copy link
Member

Makes more sense, I think I was a bit unfamiliar with the TOptions generic and what it did. 👌🏼

@github-actions
Copy link

github-actions bot commented Jan 8, 2021

🎉 This PR is included in version 5.0.0-beta.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mpeyper mpeyper deleted the bigfix/beta-pure-options-type-incorrect branch January 8, 2021 11:39
@github-actions
Copy link

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants