title: Typescript version of a config.js file
body: <p>Typically I'll have a config.js file that looks something like this:</p>
  
  <p><strong>config.js</strong></p>
  
  <pre><code>module.exports = {
    secret: "sdlfjlsdjkflsdjfsdjflsdjf",
    terminal_id: '39493843',
    transaction_key: 'asdfsldkfjdslkfjsdl'
  };
  </code></pre>
  
  <p>And I'll use it like this:</p>
  
  <p><strong>index.js</strong></p>
  
  <pre><code>const config = require('./config');
  console.log(config.secret);
  </code></pre>
  
  <p>What is the typescript way of doing this? What does the config.ts file look like and how do I import it in the index.ts file?</p>