From eae67433b791fa98ee59c33aa99f6219daeae956 Mon Sep 17 00:00:00 2001 From: jbblanchet Date: Sat, 8 Nov 2014 12:45:12 -0500 Subject: [PATCH] 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. --- tv4/tv4.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tv4/tv4.d.ts b/tv4/tv4.d.ts index 702d3c3bc6..02b7ebba2f 100644 --- a/tv4/tv4.d.ts +++ b/tv4/tv4.d.ts @@ -43,5 +43,6 @@ interface TV4 { errorCodes:TV4ErrorCodes; } declare module "tv4" { -export = TV4; + var tv4: TV4 + export = tv4; }