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