mirror of
https://github.com/google/blockly.git
synced 2026-01-06 00:20:37 +01:00
chore: remove alias comments (#6816)
* chore: remove alias comments * chore: format * chore: remove extra newlines * chore: fix bad replaces
This commit is contained in:
@@ -36,7 +36,6 @@ export const TEST_ONLY = {allExtensions};
|
||||
* @param initFn The function to initialize an extended block.
|
||||
* @throws {Error} if the extension name is empty, the extension is already
|
||||
* registered, or extensionFn is not a function.
|
||||
* @alias Blockly.Extensions.register
|
||||
*/
|
||||
export function register(name: string, initFn: Function) {
|
||||
if (typeof name !== 'string' || name.trim() === '') {
|
||||
@@ -58,7 +57,6 @@ export function register(name: string, initFn: Function) {
|
||||
* @param mixinObj The values to mix in.
|
||||
* @throws {Error} if the extension name is empty or the extension is already
|
||||
* registered.
|
||||
* @alias Blockly.Extensions.registerMixin
|
||||
*/
|
||||
export function registerMixin(name: string, mixinObj: AnyDuringMigration) {
|
||||
if (!mixinObj || typeof mixinObj !== 'object') {
|
||||
@@ -81,7 +79,6 @@ export function registerMixin(name: string, mixinObj: AnyDuringMigration) {
|
||||
* @param opt_blockList A list of blocks to appear in the flyout of the mutator
|
||||
* dialog.
|
||||
* @throws {Error} if the mutation is invalid or can't be applied to the block.
|
||||
* @alias Blockly.Extensions.registerMutator
|
||||
*/
|
||||
export function registerMutator(
|
||||
name: string, mixinObj: AnyDuringMigration,
|
||||
@@ -113,7 +110,6 @@ export function registerMutator(
|
||||
* Unregisters the extension registered with the given name.
|
||||
*
|
||||
* @param name The name of the extension to unregister.
|
||||
* @alias Blockly.Extensions.unregister
|
||||
*/
|
||||
export function unregister(name: string) {
|
||||
if (isRegistered(name)) {
|
||||
@@ -129,7 +125,6 @@ export function unregister(name: string) {
|
||||
*
|
||||
* @param name The name of the extension to check for.
|
||||
* @returns True if the extension is registered. False if it is not registered.
|
||||
* @alias Blockly.Extensions.isRegistered
|
||||
*/
|
||||
export function isRegistered(name: string): boolean {
|
||||
return !!allExtensions[name];
|
||||
@@ -143,7 +138,6 @@ export function isRegistered(name: string): boolean {
|
||||
* @param block The block to apply the named extension to.
|
||||
* @param isMutator True if this extension defines a mutator.
|
||||
* @throws {Error} if the extension is not found.
|
||||
* @alias Blockly.Extensions.apply
|
||||
*/
|
||||
export function apply(name: string, block: Block, isMutator: boolean) {
|
||||
const extensionFn = allExtensions[name];
|
||||
@@ -387,7 +381,6 @@ export function runAfterPageLoad(fn: () => void) {
|
||||
* lookup table.
|
||||
* @param lookupTable The table of field values to tooltip text.
|
||||
* @returns The extension function.
|
||||
* @alias Blockly.Extensions.buildTooltipForDropdown
|
||||
*/
|
||||
export function buildTooltipForDropdown(
|
||||
dropdownName: string, lookupTable: {[key: string]: string}): Function {
|
||||
@@ -470,7 +463,6 @@ function checkDropdownOptionsInTable(
|
||||
* placeholder.
|
||||
* @param fieldName The field with the replacement text.
|
||||
* @returns The extension function.
|
||||
* @alias Blockly.Extensions.buildTooltipWithFieldText
|
||||
*/
|
||||
export function buildTooltipWithFieldText(
|
||||
msgTemplate: string, fieldName: string): Function {
|
||||
|
||||
Reference in New Issue
Block a user