Use unknown instead of any in *MapTo operators #6713
krokosik
started this conversation in
Report issues other than bug
Replies: 2 comments
-
Core team have long term planning to deprecate *To variant eventually. If current eslint rule is blocking, recommendation is use |
Beta Was this translation helpful? Give feedback.
0 replies
-
This was recently resolved by #6738. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently operators like
mapTo
,mergeMapTo
and so on, have a type ofOperatorFunction<any, T>
, which does not cause any errors on its own, but introduces an unsafeany
argument, which is picked up by this ESLint rule. Changing it tounknown
, is a rather cosmetic fix, but It fixes the problem and is more in line with how TypeScript should be used.Beta Was this translation helpful? Give feedback.
All reactions