<p dir="auto">The following snippet is valid ES6, but does not compile due to the undeclared property <code class="notranslate">thing</code>. Since TypeScript is aiming to be a superset of ES6, how will this situation be approached?</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Thing {
    constructor() {
        this.thing = 12;
    }
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Thing</span> <span class="pl-kos">{</span>
    <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
        <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">thing</span> <span class="pl-c1">=</span> <span class="pl-c1">12</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">I would like to implement compilation of ts files to generate source map + js files inside Eclipse by using <code class="notranslate">tsc</code>. I have 2 means to do that:</p>
<ol dir="auto">
<li>observe changes (with Eclipse IResource API) of typescript files and call <code class="notranslate">tsc</code> with the given file</li>
<li>call <code class="notranslate">tsc --watch</code> for my Eclipse project</li>
</ol>
<p dir="auto">I would prefer to do the 2) because<code class="notranslate">tsc --watch</code>  if I have understood stores in memory the other compiled ts files, so I think performance will be better with 2). My main problem is about refresh generated files:</p>
<ul dir="auto">
<li>when there is an error,<code class="notranslate">tsc --watch</code> displays in the console errors for files. So it's easy to catch those logs and display errors in Eclipse Problem View.</li>
<li>but when there are none errors, <code class="notranslate">tsc --watch</code> doesn't display in the console the generated files in order I refresh it inside Workspace Eclipse. I would like to avoid refreshing the full project directory as soon as  <code class="notranslate">tsc --watch</code> done a job. If <code class="notranslate">tsc --watch</code> could log generated files, it will help me a lot.</li>
</ul>
<p dir="auto">Many thanks for your suggestion!</p>