Typechecking sometimes break when trying to access fields on a variable
Sometimes when I try to access a variable, the type checking for it breaks and it gets typed as
any
. (See first image) giving this error:
implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
But when I remove the line where I am trying to access the variable, it reverts back to its proper type and looks fine ( Second image).
This completely breaks type checking for me in VSCode :/
Has someone had a similar issue?

0 Replies