Is there a way of telling what class instance an object is in Typescript? I mean more specifically than just 'Object'.
If you had this:
const x : MyClass = new MyClass();
console.log(typeof(x));
You'd get:
'Object'
Then if you did this:
console.log(x instanceof MyClass);
You'd get:
Uncaught ReferenceError: MyClass is not defined
How can I get it to print out 'MyClass'?