mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
remove namespace
This commit is contained in:
1
mem/index.d.ts
vendored
1
mem/index.d.ts
vendored
@@ -14,5 +14,4 @@ declare const mem: {
|
||||
clear<F extends (...args: any[]) => any>(fn: F): void;
|
||||
};
|
||||
|
||||
declare namespace mem { }
|
||||
export = mem;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as mem from 'mem';
|
||||
import mem = require('mem');
|
||||
|
||||
let i = 0;
|
||||
const memoized = mem((arg: string) => ++i);
|
||||
|
||||
Reference in New Issue
Block a user