-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor: add support for noImplicitAny #13381
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
Conversation
9092bd8
to
0b5bc38
Compare
@Inject(DIALOG_REF) private dialogRefConstructor, | ||
@Inject(DIALOG_SCROLL_STRATEGY) private _scrollStrategy, | ||
@Inject(DIALOG_REF) private dialogRefConstructor: Type<DialogRef<any>>, | ||
@Inject(DIALOG_SCROLL_STRATEGY) scrollStrategy: any, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't this be ScrollStrategy
?
(same for other places that inject a strategy)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually a () => ScrollStrategy
. It can't have the actual type in here, because the compiler complains about it. I tried introducing a new type called ScrollStrategyFactory
, but that ended up breaking in a different way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a TODO to change it back once we're using the ivy renderer? It will fix the problem that prevents the correct type from being used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
b4ab821
to
5251a42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Enables the `noImplicitAny` compiler option and fixes all of the resulting compiler errors. Fixes angular#13330.
5251a42
to
eb3dc7e
Compare
Enables the `noImplicitAny` compiler option and fixes all of the resulting compiler errors. Fixes angular#13330.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Enables the
noImplicitAny
compiler option and fixes all of the resulting compiler errors.Fixes #13330.