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
It seems there is a slightly inconsistent behavior of Typescript parsing and the usage of the project's local tsconfig.json settings. The part I've really noticed is the noImplicitAny flag being interpreted in some, but not all places. The screenshot below shows a couple arbitrary function definitions inside and outside a component's export default. Based on reading some of the comments in the Typescript pull request, it seems there are some assumptions that have to be made about the default export, and it might be tied to that. I've also included a couple declarations that show appropriate errors when the type IS given, so it is obviously trying to validate things. The difference is between thing2 and stuff2.
The text was updated successfully, but these errors were encountered:
Here, VS Code outputs only 1 typechecking error (though event in onClick method has implicit any type):
However, TypeScript compiler correctly outputs 2 errors:
@octref as this issue and #159 are now closed, #170 is not quite related to TypeScript itself but to TSLint support and #188 seems to not have TypeScript-specific tasks in it, I just wanted to make sure this issue is still being tracked.
It seems there is a slightly inconsistent behavior of Typescript parsing and the usage of the project's local tsconfig.json settings. The part I've really noticed is the noImplicitAny flag being interpreted in some, but not all places. The screenshot below shows a couple arbitrary function definitions inside and outside a component's
export default
. Based on reading some of the comments in the Typescript pull request, it seems there are some assumptions that have to be made about the default export, and it might be tied to that. I've also included a couple declarations that show appropriate errors when the type IS given, so it is obviously trying to validate things. The difference is betweenthing2
andstuff2
.The text was updated successfully, but these errors were encountered: