-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add function to create "typed" version of middleware #819
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit a859a31:
|
2e92475
to
2aaba40
Compare
f3a20c7
to
0234909
Compare
0234909
to
a859a31
Compare
Codecov Report
@@ Coverage Diff @@
## master #819 +/- ##
=========================================
Coverage ? 97.53%
=========================================
Files ? 127
Lines ? 7961
Branches ? 1835
=========================================
Hits ? 7765
Misses ? 196
Partials ? 0
Continue to review full report at Codecov.
|
* Add factory function to middleware for adding types * change to withType
* Handle ignored children in decorate (#840) * Allow finding and modifying wrapped widgets in functional children (#780) * Add function to create "typed" version of middleware (#819) * Add factory function to middleware for adding types * change to withType * Fix mock middleware types (#822) * Wrap children result in an array if not already in one (#844) * wrap children result in an array if not already in one * add test for wrapped children * update assert render unit test (#820) Co-authored-by: Bradley Maier <[email protected]> Co-authored-by: Anthony Gubler <[email protected]>
Type: bug
The following has been addressed in the PR:
prettier
as per the readme code style guidelinesDescription:
When factories are used to create middleware to print typings we don't need to actually create the middleware-factory every time, only stamp the type on the returned middleware-factory type.
Resolves #817