mirror of
https://github.com/google/blockly.git
synced 2026-06-16 16:15:14 +02:00
fix: Make generator types and BlockDefinition less restrictive (#6185)
This commit is contained in:
committed by
GitHub
parent
8b69b61c56
commit
2ff4f88f24
Vendored
+2
-2
@@ -522,13 +522,13 @@ declare module "core/blocks" {
|
||||
* A block definition. For now this very lose, but it can potentially
|
||||
* be refined e.g. by replacing this typedef with a class definition.
|
||||
*/
|
||||
export type BlockDefinition = Object;
|
||||
export type BlockDefinition = any;
|
||||
/**
|
||||
* A block definition. For now this very lose, but it can potentially
|
||||
* be refined e.g. by replacing this typedef with a class definition.
|
||||
* @typedef {!Object}
|
||||
*/
|
||||
export let BlockDefinition: any;
|
||||
// export let BlockDefinition: any;
|
||||
/**
|
||||
* A mapping of block type names to block prototype objects.
|
||||
* @type {!Object<string,!BlockDefinition>}
|
||||
|
||||
Vendored
+1
-1
@@ -12,5 +12,5 @@
|
||||
/// <reference path="core.d.ts" />
|
||||
|
||||
import * as Blockly from './core';
|
||||
declare const dart: Blockly.Generator;
|
||||
declare const dart: any;
|
||||
export = dart;
|
||||
|
||||
Vendored
+1
-2
@@ -14,8 +14,7 @@
|
||||
/// <reference path="javascript.d.ts" />
|
||||
/// <reference path="msg/msg.d.ts" />
|
||||
|
||||
import { Generator } from 'core/blockly';
|
||||
export * from './core';
|
||||
export * as libraryBlocks from './blocks';
|
||||
export const JavaScript: Generator;
|
||||
export const JavaScript: any;
|
||||
import './msg/msg';
|
||||
|
||||
Vendored
+1
-1
@@ -12,5 +12,5 @@
|
||||
/// <reference path="core.d.ts" />
|
||||
|
||||
import * as Blockly from './core';
|
||||
declare const javascript: Blockly.Generator;
|
||||
declare const javascript: any;
|
||||
export = javascript;
|
||||
|
||||
Vendored
+1
-1
@@ -12,5 +12,5 @@
|
||||
/// <reference path="core.d.ts" />
|
||||
|
||||
import * as Blockly from './core';
|
||||
declare const lua: Blockly.Generator;
|
||||
declare const lua: any;
|
||||
export = lua;
|
||||
|
||||
Vendored
+1
-1
@@ -12,5 +12,5 @@
|
||||
/// <reference path="core.d.ts" />
|
||||
|
||||
import * as Blockly from './core';
|
||||
declare const php: Blockly.Generator;
|
||||
declare const php: any;
|
||||
export = php;
|
||||
|
||||
Vendored
+1
-1
@@ -12,5 +12,5 @@
|
||||
/// <reference path="core.d.ts" />
|
||||
|
||||
import * as Blockly from './core';
|
||||
declare const python: Blockly.Generator;
|
||||
declare const python: any;
|
||||
export = python;
|
||||
|
||||
Reference in New Issue
Block a user