mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
* refactor(blocks): Auto-migration of blocks/blocks.js to ts * fix(blocks): Manually migrate & fix types in blocks.ts * fix(build): Update location of blocks/blocks.ts exports object * fix(blocks): Remove lint * chore(blocks): Format
47 lines
1.0 KiB
TypeScript
47 lines
1.0 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import * as goog from '../closure/goog/goog.js';
|
|
goog.declareModuleId('Blockly.libraryBlocks');
|
|
|
|
import * as colour from './colour.js';
|
|
import * as lists from './lists.js';
|
|
import * as logic from './logic.js';
|
|
import * as loops from './loops.js';
|
|
import * as math from './math.js';
|
|
import * as procedures from './procedures.js';
|
|
import * as texts from './text.js';
|
|
import * as variables from './variables.js';
|
|
import * as variablesDynamic from './variables_dynamic.js';
|
|
import type {BlockDefinition} from '../core/blocks.js';
|
|
|
|
export {
|
|
colour,
|
|
lists,
|
|
loops,
|
|
math,
|
|
procedures,
|
|
texts,
|
|
variables,
|
|
variablesDynamic,
|
|
};
|
|
|
|
/**
|
|
* A dictionary of the block definitions provided by all the
|
|
* Blockly.libraryBlocks.* modules.
|
|
*/
|
|
export const blocks: {[key: string]: BlockDefinition} = Object.assign(
|
|
{},
|
|
colour.blocks,
|
|
lists.blocks,
|
|
logic.blocks,
|
|
loops.blocks,
|
|
math.blocks,
|
|
procedures.blocks,
|
|
variables.blocks,
|
|
variablesDynamic.blocks
|
|
);
|