title: Typescript declared static class method is not a function
body: <p>I created an es6 library for some of my projects.</p>
  
  <p>When I import this library all static functions raise an error.</p>
  
  <p>This is an example.</p>
  
  <p>My Class (es6) : </p>
  
  <pre class="lang-js prettyprint-override"><code>class JsonSerializer {
      static toJson(node) { /* some code */ }
  }
  
  export default JsonSerializer
  </code></pre>
  
  <p>Typescript definition file : </p>
  
  <pre><code>export class JsonSerializer {
      static toJson(root: Node): any
  
      static fromJson(config: any): Node
  }
  </code></pre>
  
  <p>I import my class like this</p>
  
  <pre><code>import {JsonSerializer} from 'ls-serializer'
  </code></pre>
  
  <p>When I try to use <code>toJson</code> static method.</p>
  
  <p>And its give me following error : </p>
  
  <pre><code>_lsSerializer.JsonSerializer.toJson is not a function
  </code></pre>
  
  <p>I've same error for all static method.</p>
  
  <p>Did I miss something ?</p>
  
  <h1>EDIT</h1>
  
  <p>This is my library webpack config : </p>
  
  <pre class="lang-js prettyprint-override"><code>const path = require('path');
  
  module.exports = {
  
      entry : {
          serializer : './src/serializer.js'
      },
  
      output : {
          path     : path.resolve(__dirname, 'dist'),
          filename : '[name].bundle.js',
          libraryTarget: 'commonjs-module'
      },
  
      resolve : {
          extensions : ['.js', '.jsx'],
  
          alias : {
              '@' : path.resolve(__dirname, 'src'),
              '~' : path.resolve(__dirname, 'examples')
          }
      },
  
      devServer : {
          contentBase : path.resolve(__dirname, 'dist'),
          compress    : true,
          port        : 9000
      },
  
      module : {
          rules : [{
              test    : /\.(js|jsx)$/,
              exclude : /node_modules/,
              loader  : 'babel-loader'
          }, {
              test : /\.(html)$/,
              use  : {
                  loader  : 'html-loader',
                  options : {
                      attrs : [':data-src']
                  }
              }
          }]
      },
  
      devtool : 'source-map',
  
      mode : 'development'
  };
  </code></pre>
  
  <p>And this is <code>./src/serializer.js</code>file code : </p>
  
  <pre class="lang-js prettyprint-override"><code>import JsonSerializer from './serializers/JsonSerializer'
  
  export {
      JsonSerializer, /* other exports*/
  }
  </code></pre>