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(modal): readd modal generic with a fix for noImplicitAny #3578
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3578 +/- ##
=======================================
Coverage 91.71% 91.71%
=======================================
Files 100 100
Lines 2896 2896
Branches 533 533
=======================================
Hits 2656 2656
Misses 183 183
Partials 57 57
Continue to review full report at Codecov.
|
any chance this is getting merged ? @gentoo90 |
@gentoo90 @michaeljota While waiting for this is there an alternative way to get the types working? |
Just put const modalRef = this.modalService.open(ModalComponent);
const ci: ModalComponent = modalRef.componentInstance;
ci.name = 'World'; I rebased onto the latest master and fixed compile error in |
Thanks that works for now. |
Is there any update on this? |
27f4b93
to
54ffb0c
Compare
Codecov ReportAll modified lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3578 +/- ##
=======================================
Coverage 89.24% 89.24%
=======================================
Files 120 120
Lines 4287 4288 +1
Branches 820 820
=======================================
+ Hits 3826 3827 +1
Misses 419 419
Partials 42 42
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
0e2d9ff
to
df17d50
Compare
54ffb0c
to
09df8c6
Compare
Typescript demands `undefined` in the return type if function doesn't return anything. In our case `undefined` is choosen when there's no component, so we add a little trick to relax that rule.
09df8c6
to
d3ac0ec
Compare
Before submitting a pull request, please make sure you have at least performed the following:
Another attempt on #2479.
Pullrequest #2815 was rolled back because of a bug with
noImplicitAny
(#3464).In this request I'm putting it back with one addition: modal is now passed as an argument into
beforeDismiss
, which allows to writewhich compiles correctly without any additional type annotations.
CC @nseni , @michaeljota