Remove unnecessary namespace and fix importing expression in test module

This implementation is for making `import * as someModule from 'someModule'` is available.
But this usage is note appropiate.
This commit is contained in:
Junyoung Choi
2017-09-06 16:15:21 +09:00
parent b5e934832b
commit f56d8aacd5
2 changed files with 1 additions and 3 deletions

View File

@@ -5,6 +5,4 @@
declare function wcwidth(input: string): number;
declare namespace wcwidth {}
export = wcwidth;

View File

@@ -1,4 +1,4 @@
import * as wcwidth from 'wcwidth';
import wcwidth = require('wcwidth');
const length1 = wcwidth('한'); // => 2