From 978b1b83c489a2824eaad16f925c96ee7052f3f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E4=BC=9F=E4=BC=9F?= Date: Tue, 13 Apr 2021 07:00:16 +0800 Subject: [PATCH] fix: Fix typing error of generators (#4753) --- typings/dart.d.ts | 3 ++- typings/javascript.d.ts | 3 ++- typings/lua.d.ts | 3 ++- typings/php.d.ts | 3 ++- typings/python.d.ts | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) 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;