You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in microsoft/TypeScript#8855 there's a big demand to enable --noImplicitAny on a per-file basis. As this will not be supported by the compiler, this proposes duplicating that behavior as a lint rule.
IMO this rule should not be part of the recommended preset. If --noImplicitAny is already enabled the rule does nothing.
TODO:
there are some differences in type inference depending on --noImplicitAny -> find out which and if we need to warn in these cases too.
IIRC there was a PR to allow element access on a fresh object literal without index signature, but I can't find it right now.
As discussed in microsoft/TypeScript#8855 there's a big demand to enable
--noImplicitAny
on a per-file basis. As this will not be supported by the compiler, this proposes duplicating that behavior as a lint rule.IMO this rule should not be part of the recommended preset. If
--noImplicitAny
is already enabled the rule does nothing.TODO:
--noImplicitAny
-> find out which and if we need to warn in these cases too.Ref: palantir/tslint#4215
The text was updated successfully, but these errors were encountered: