From f56d8aacd57d0ec2e56a0ad0ccfb2d4124856759 Mon Sep 17 00:00:00 2001 From: Junyoung Choi Date: Wed, 6 Sep 2017 16:15:21 +0900 Subject: [PATCH] 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. --- types/wcwidth/index.d.ts | 2 -- types/wcwidth/wcwidth-tests.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/types/wcwidth/index.d.ts b/types/wcwidth/index.d.ts index 99b2107ba9..da9920a611 100644 --- a/types/wcwidth/index.d.ts +++ b/types/wcwidth/index.d.ts @@ -5,6 +5,4 @@ declare function wcwidth(input: string): number; -declare namespace wcwidth {} - export = wcwidth; diff --git a/types/wcwidth/wcwidth-tests.ts b/types/wcwidth/wcwidth-tests.ts index 56e4987a7a..11f150a73c 100644 --- a/types/wcwidth/wcwidth-tests.ts +++ b/types/wcwidth/wcwidth-tests.ts @@ -1,4 +1,4 @@ -import * as wcwidth from 'wcwidth'; +import wcwidth = require('wcwidth'); const length1 = wcwidth('한'); // => 2