From 9a2f288dd49f547f12e791d15c770b708fc29307 Mon Sep 17 00:00:00 2001 From: David Foster Date: Mon, 16 Nov 2020 14:12:10 -0800 Subject: [PATCH] Allow .js script files to refer to Blockly global from blockly.d.ts (#4434) --- typings/blockly.d.ts | 2 ++ typings/templates/blockly-header.template | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/typings/blockly.d.ts b/typings/blockly.d.ts index 0b37bdb60..7d713f147 100644 --- a/typings/blockly.d.ts +++ b/typings/blockly.d.ts @@ -11,6 +11,8 @@ export = Blockly; +export as namespace Blockly; + declare module Blockly { interface BlocklyOptions { diff --git a/typings/templates/blockly-header.template b/typings/templates/blockly-header.template index 15bcf14dd..bab2b134f 100644 --- a/typings/templates/blockly-header.template +++ b/typings/templates/blockly-header.template @@ -9,4 +9,6 @@ * @author samelh@google.com (Sam El-Husseini) */ -export = Blockly; \ No newline at end of file +export = Blockly; + +export as namespace Blockly; \ No newline at end of file