Is there any difference between what the TypeScript spec calls a type assertion:
var circle = createShape(\"circle\");
And t
From Wiki page: "What's new in TypeScript [1.6]":
New
.tsx
file extension andas
operatorTypeScript 1.6 introduces a new
.tsx
file extension. This extension does two things: it enables JSX inside of TypeScript files, and it makes the newas
operator the default way to cast (removing any ambiguity between JSX expressions and the TypeScript prefix cast operator). For example:var x =
foo; // is equivalent to: var x = foo as any;