How to use node-config in typescript? : <p>After installing <code>node-config</code> and <code>@types/config</code>:</p>

<pre><code>yarn add config
yarn add --dev @types/config
</code></pre>

<p>And adding config as described in <a href="https://github.com/lorenwest/node-config" rel="noreferrer">lorenwest/node-config</a>:</p>

<pre><code>// default.ts
export default {
  server: {
    port: 4000,
  },
  logLevel: 'error',
};
</code></pre>

<p>When I am trying to use in my app:</p>

<pre><code>import config from 'config';

console.log(config.server);
</code></pre>

<p>I am getting the error:</p>

<pre><code>src/app.ts(19,53): error TS2339: Property 'server' does not exist on type 'IConfig'.
</code></pre>
