chore: remove alias comments (#6816)

* chore: remove alias comments

* chore: format

* chore: remove extra newlines

* chore: fix bad replaces
This commit is contained in:
Rachel Fenichel
2023-02-06 10:08:55 -08:00
committed by GitHub
parent a96eec8a70
commit 1d1a927628
260 changed files with 0 additions and 937 deletions

View File

@@ -48,15 +48,11 @@ const nameMap: {[key: string]: {[key: string]: string}} = Object.create(null);
/**
* The string used to register the default class for a type of plugin.
*
* @alias Blockly.registry.DEFAULT
*/
export const DEFAULT = 'default';
/**
* A name with the type of the element stored in the generic.
*
* @alias Blockly.registry.Type
*/
export class Type<_T> {
/** @param name The name of the registry type. */
@@ -112,7 +108,6 @@ export class Type<_T> {
* @throws {Error} if the type or name is empty, a name with the given type has
* already been registered, or if the given class or object is not valid for
* its type.
* @alias Blockly.registry.register
*/
export function register<T>(
type: string|Type<T>, name: string,
@@ -181,7 +176,6 @@ function validate(type: string, registryItem: Function|AnyDuringMigration) {
* @param type The type of the plugin.
* (e.g. Field, Renderer)
* @param name The plugin's name. (Ex. field_angle, geras)
* @alias Blockly.registry.unregister
*/
export function unregister<T>(type: string|Type<T>, name: string) {
type = String(type).toLowerCase();
@@ -237,7 +231,6 @@ function getItem<T>(
* @param name The plugin's name. (Ex. field_angle, geras)
* @returns True if the registry has an item with the given type and name, false
* otherwise.
* @alias Blockly.registry.hasItem
*/
export function hasItem<T>(type: string|Type<T>, name: string): boolean {
type = String(type).toLowerCase();
@@ -258,7 +251,6 @@ export function hasItem<T>(type: string|Type<T>, name: string): boolean {
* @param opt_throwIfMissing Whether or not to throw an error if we are unable
* to find the plugin.
* @returns The class with the given name and type or null if none exists.
* @alias Blockly.registry.getClass
*/
export function getClass<T>(
type: string|Type<T>, name: string, opt_throwIfMissing?: boolean):
@@ -277,7 +269,6 @@ export function getClass<T>(
* @param opt_throwIfMissing Whether or not to throw an error if we are unable
* to find the object.
* @returns The object with the given name and type or null if none exists.
* @alias Blockly.registry.getObject
*/
export function getObject<T>(
type: string|Type<T>, name: string, opt_throwIfMissing?: boolean): T|null {
@@ -293,7 +284,6 @@ export function getObject<T>(
* @param opt_throwIfMissing Whether or not to throw an error if we are unable
* to find the object. False by default.
* @returns A map of objects with the given type, or null if none exists.
* @alias Blockly.registry.getAllItems
*/
export function getAllItems<T>(
type: string|Type<T>, opt_cased?: boolean, opt_throwIfMissing?: boolean):
@@ -331,7 +321,6 @@ export function getAllItems<T>(
* @param opt_throwIfMissing Whether or not to throw an error if we are unable
* to find the plugin.
* @returns The class for the plugin.
* @alias Blockly.registry.getClassFromOptions
*/
export function getClassFromOptions<T>(
type: Type<T>, options: Options, opt_throwIfMissing?: boolean):