diff --git a/typings/dart.d.ts b/typings/dart.d.ts
index c04eda2a8e3..e3b27298e14 100644
--- a/typings/dart.d.ts
+++ b/typings/dart.d.ts
@@ -12,4 +12,5 @@
///
import * as Blockly from './core';
-export = Blockly.Generator;
+declare const dart: Blockly.Generator;
+export = dart;
diff --git a/typings/javascript.d.ts b/typings/javascript.d.ts
index f1a14baaf06..25241944379 100644
--- a/typings/javascript.d.ts
+++ b/typings/javascript.d.ts
@@ -12,4 +12,5 @@
///
import * as Blockly from './core';
-export = Blockly.Generator;
+declare const javascript: Blockly.Generator;
+export = javascript;
diff --git a/typings/lua.d.ts b/typings/lua.d.ts
index a5170bc8297..235cfe59211 100644
--- a/typings/lua.d.ts
+++ b/typings/lua.d.ts
@@ -12,4 +12,5 @@
///
import * as Blockly from './core';
-export = Blockly.Generator;
+declare const lua: Blockly.Generator;
+export = lua;
diff --git a/typings/php.d.ts b/typings/php.d.ts
index 75f2ef69337..ce64895f4e5 100644
--- a/typings/php.d.ts
+++ b/typings/php.d.ts
@@ -12,4 +12,5 @@
///
import * as Blockly from './core';
-export = Blockly.Generator;
+declare const php: Blockly.Generator;
+export = php;
diff --git a/typings/python.d.ts b/typings/python.d.ts
index ba328145ae2..0ee3f36d11d 100644
--- a/typings/python.d.ts
+++ b/typings/python.d.ts
@@ -12,4 +12,5 @@
///
import * as Blockly from './core';
-export = Blockly.Generator;
+declare const python: Blockly.Generator;
+export = python;