How to create typings for ts
<p>I have a library installed in <code>node_modules/</code> and I want a fast hack so I can use it in typescript app. In folder <code>typings/modules</code> I created a folder with the name of the module and an <code>index.d.ts</code> file. Inside that file I have  </p>

<pre><code>declare module "lib-name" {
  export default class Logger {
    constructor(namespace: string)
  }
}
</code></pre>

<p>I'm able to import the module, but when I try to <code>let l = new Lib('namespace');</code> I'm getting error <code>cannot use 'with' an expression whose type lacks a call or construct signature</code></p>