mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
fixes import from
It now supports `import * as deepFreeze from "deep-freeze";`
This commit is contained in:
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