mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
Declare variable so import works
When declaring a module, it's necessary to declare a variable then export it, else the import keyword won't work properly when using modules.
This commit is contained in:
3
tv4/tv4.d.ts
vendored
3
tv4/tv4.d.ts
vendored
@@ -43,5 +43,6 @@ interface TV4 {
|
||||
errorCodes:TV4ErrorCodes;
|
||||
}
|
||||
declare module "tv4" {
|
||||
export = TV4;
|
||||
var tv4: TV4
|
||||
export = tv4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user