title: TypeScript isolatedModules true export generator function
body: <p>I have a <code>index.ts</code> file that exports a generator function</p>
  
  <pre><code>export function* myFunction() { [...] }
  </code></pre>
  
  <p>It works fine with <code>--isolatedModules = false</code> but fails to compile with <code>--isolatedModules = true</code></p>
  
  <p>Error message during compilation:</p>
  
  <pre><code>All files must be modules when the '--isolatedModules' flag is provided.  TS1208
  </code></pre>