title: How to import all modules from a directory in TypeScript?
body: <p>In TypeScript <a href="https://www.typescriptlang.org/docs/handbook/modules.html" rel="noreferrer">handbook</a> few techniques for importing modules are described:</p>
  
  <ul>
  <li>Import a single export from a module: <code>import { ZipCodeValidator } from "./ZipCodeValidator";</code></li>
  <li>Import a single export from a module and rename it: <code>import { ZipCodeValidator as ZCV } from "./ZipCodeValidator";</code></li>
  <li>Import entire module: <code>import * as validator from "./ZipCodeValidator";</code></li>
  </ul>
  
  <p>I expect there's one more option but nowhere I can find it. Is it possible to import all modules from a given directory? </p>
  
  <p>I guess the syntax should be more or less like this: <code>import * from "./Converters"</code>.</p>