mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-18 07:51:48 +08:00
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:
2
types/wcwidth/index.d.ts
vendored
2
types/wcwidth/index.d.ts
vendored
@@ -5,6 +5,4 @@
|
||||
|
||||
declare function wcwidth(input: string): number;
|
||||
|
||||
declare namespace wcwidth {}
|
||||
|
||||
export = wcwidth;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as wcwidth from 'wcwidth';
|
||||
import wcwidth = require('wcwidth');
|
||||
|
||||
const length1 = wcwidth('한'); // => 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user