In Visual Studio 2013 Premium
when I'm in a javascript file and say a class TypeScript
with a name MyClass
. At the end of the TS file, I create it as follows:
var MyInstanceClass = MyClass
Now MyInstanceClass can be used everywhere. I am trying to understand why from a JavaScript file I use this instance similar to this
MyInstanceClass.MyMethod();
but when I try to use GO TO DEFINITION for MyMethod
, I get
Go to definition failed. Either the carriage is already in the definition, or because the explicit definition cannot be found
I tried MyInstanceClass
instead of the method and I get the same.
source
share