Typescript claims full compatibility with JavaScript, but yet when I write:
var obj = {};
obj.x = 1;
TypeScript throws an error saying that obj
doesn't have definition of x
. Why?
I am using VS2013 along with TypeScript 1.4
Typescript claims full compatibility with JavaScript, but yet when I write:
var obj = {};
obj.x = 1;
TypeScript throws an error saying that obj
doesn't have definition of x
. Why?
I am using VS2013 along with TypeScript 1.4