chore: miscellaneous fixes to docs, style, and tests (#6705)

* docs(icon): Better description for Icon.prototype.setVisible

  Also tweak description of getBlock.

* docs(blocks): Fix typo in description of BlockDefinition

* chore(tests): Factor out common goog:chromeOptions

* chore(build): Minor style fixes
This commit is contained in:
Christopher Allen
2022-12-14 23:48:12 +00:00
committed by GitHub
parent fccf8e436e
commit 3be3d4a6ff
5 changed files with 21 additions and 22 deletions

View File

@@ -14,7 +14,7 @@ goog.declareModuleId('Blockly.blocks');
/**
* A block definition. For now this very lose, but it can potentially
* A block definition. For now this very loose, but it can potentially
* be refined e.g. by replacing this typedef with a class definition.
*/
export type BlockDefinition = AnyDuringMigration;

View File

@@ -179,14 +179,14 @@ export abstract class Icon {
// No-op on base class.
/**
* Show or hide the icon.
* Show or hide the bubble.
*
* @param _visible True if the icon should be visible.
* @param _visible True if the bubble should be visible.
*/
setVisible(_visible: boolean) {}
/**
* Returns the block this icon is attached to.
* @returns The block this icon is attached to.
*/
protected getBlock(): BlockSvg {
if (!this.block_) {