From 238257c022e86cde647acd6a3cc64e140b8cf2be Mon Sep 17 00:00:00 2001 From: ywwhack Date: Sun, 4 Apr 2021 22:41:24 +0800 Subject: [PATCH] fix: Fix typing error of generators --- 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;