mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-10 11:50:49 +08:00
fixes import from
It now supports `import * as deepFreeze from "deep-freeze";`
This commit is contained in:
1 parent
99c4fb76b5
commit
7b0f798f64
1 file changed
+9
-3
Vendored
+9
-3
@@ -3,7 +3,13 @@
|
||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module 'deep-freeze' {
|
||||
function df<T>(obj: T): T;
|
||||
export = df;
|
||||
declare module DeepFreeze {
|
||||
export interface DeepFreezeInterface {
|
||||
<T>(obj: T): T;
|
||||
}
|
||||
}
|
||||
|
||||
declare module "deep-freeze" {
|
||||
let deepFreeze: DeepFreeze.DeepFreezeInterface;
|
||||
export = deepFreeze;
|
||||
}
|
||||
Reference in new issue
Block a user