Typescript Type Definition References
<p>I have a project with multiple typescript files.
If I add a new typescript file I have to reference typings in order to compile it, VS couldn't resolve them itself. Also I have empty .ts file that doesn't require referencing typings, so I put code into it and it works.</p>

<p>When I found out it I kept the file and now when I need to create new .ts file, I copy that file and everything works like a charm.</p>

<p>So suppose in a folder I have two .ts files side by side: a copy of a magic file and a newly created one.</p>

<p>If I put this code in the magic file</p>

<pre><code>class Test {
    test: KnockoutObservable&lt;string&gt;;
}
</code></pre>

<p>it compiles. If I put the same code into another file it says </p>

<blockquote>
  <p>Cannot find name KnockoutObservable</p>
</blockquote>

<p>What is so special about the first file?</p>

<p>I'm using Visual Studio 2015.
I have installed Knockout typings.
I have empty tsconfig.json file in the solution.
I don't want to reference typings using /// reference comment.</p>

<p>Thanks.</p>