Files
blockly/core/interfaces/i_registrable_field.js
Rachel Fenichel f14a1c8034 chore: fix more lint (#5676)
* chore: fix assorted lint

* chore: clang-format

* chore: clang-format
2021-11-08 16:41:52 -08:00

40 lines
869 B
JavaScript

/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview The interface for a Blockly field that can be registered.
*/
'use strict';
/**
* The interface for a Blockly field that can be registered.
* @namespace Blockly.IRegistrableField
*/
goog.module('Blockly.IRegistrableField');
/* eslint-disable-next-line no-unused-vars */
const {Field} = goog.requireType('Blockly.Field');
/**
* A registrable field.
* Note: We are not using an interface here as we are interested in defining the
* static methods of a field rather than the instance methods.
* @typedef {{
* fromJson:IRegistrableField.fromJson
* }}
* @alias Blockly.IRegistrableField
*/
const IRegistrableField = {};
/**
* @typedef {function(!Object): Field}
*/
IRegistrableField.fromJson;
exports.IRegistrableField = IRegistrableField;