title: DefinitelyTyped log4javascript missing module declaration
body: <p>I'm having a hard time using the following typings file in my project:</p>
  
  <p><a href="https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/log4javascript" rel="nofollow">https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/log4javascript</a></p>
  
  <p>Apperantly, the file is missing a module declaration, causing typescript to complain that it can't find the module 'log4javascript' when I put the following statement in my typescript file:</p>
  
  <p><code>import * as log4javascript from 'log4javascript';</code></p>
  
  <p>When I manually edit the index.d.ts file that is installed by running the command</p>
  
  <p><code>typings install dt~log4javascript --global --save</code>  </p>
  
  <p>and I add this module declaration:</p>
  
  <p><code>declare module "log4javascript" {
      import test = log4javascript;
      export = test;
  }</code></p>
  
  <p>at the end of the file, then the compiler no longer complains and my code even works without using the <code>import *</code> statement.</p>
  
  <p><strong>So how am I supposed to use the typings file so that I can use log4javascript with typescript?</strong></p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I've managed to work around it by creating a <code>custom.d.ts</code> file which declares the log4javascript module alongside the generated root index.d.ts of typings and added a <code>///&lt;reference path="..." /&gt;</code> statement in my main.ts file used by requirejs.<br>
  I still don't feel that this is the correct way to do it, but it works for now.</p>