I created a new Windows 8 blogging application with TypeScript 0.8.1 and installed websites.
I added both foo.ts and bar.ts .
foo.ts contains only a simple class:
class Foo { }
bar.ts contains a link to foo.ts and a class line:
/// <reference path="foo.ts" /> class Bar { }
It is strange that bar.js contains the class Bar and Foo:
var Foo = (function () { function Foo() { } return Foo; })(); var Bar = (function () { function Bar() { } return Bar; })();
What is going wrong? I am working on a larger project with a common reference.ts file. Suddenly all my ts files are compiled into every javascript file.
source share