mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
* Rename Blockly.Blocks to Blockly.blocks Because it does not export a type as its default export. Part of #5073. * Name default export of Blockly.blocks Blocks. Use named exports in Blockly.blocks by giving the former default export the name Blocks. Part of #5153. * Reexport Blockly.blocks from blockly.js * Document the format of renamings.js better.
27 lines
525 B
JavaScript
27 lines
525 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2013 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview A mapping of block type names to block prototype objects.
|
|
* @author spertus@google.com (Ellen Spertus)
|
|
*/
|
|
'use strict';
|
|
|
|
/**
|
|
* A mapping of block type names to block prototype objects.
|
|
* @name Blockly.Blocks
|
|
*/
|
|
goog.module('Blockly.blocks');
|
|
|
|
|
|
/**
|
|
* A mapping of block type names to block prototype objects.
|
|
* @type {!Object<string,!Object>}
|
|
*/
|
|
const Blocks = Object.create(null);
|
|
|
|
exports.Blocks = Blocks;
|