refactor: Remove more uses of AnyDuringMigration. (#6383)

* refactor: Remove uses of AnyDuringMigration from flyout_base.ts.

* refactor: Remove uses of AnyDuringMigration from flyout_metrics_manager.ts.

* refactor: Remove uses of AnyDuringMigration from variables_dynamic.ts.

* refactor: Remove uses of AnyDuringMigration from procedures.ts.

* refactor: Remove uses of AnyDuringMigration from generator.ts.

* refactor: Remove some uses of AnyDuringMigration from menu.ts.

* refactor: Remove uses of AnyDuringMigration from mutator.ts.

* refactor: Remove uses of AnyDuringMigration from variables.ts.

* refactor: Remove uses of AnyDuringMigration from array.ts.

* refactor: Remove uses of AnyDuringMigration from aria.ts.

* refactor: Remove uses of AnyDuringMigration in basic_cursor.ts.

* refactor: Remove uses of AnyDuringMigration in dropdowndiv.ts.

* refactor: Remove uses of AnyDuringMigration in utils.ts.

* refactor: Remove uses of AnyDuringMigration from menuitem.ts.

* refactor: Remove uses of AnyDuringMigration from idgenerator.ts.

* refactor: Remove uses of AnyDuringMigration in block_animations.ts.

* refactor: Initialize definitions and functionNames in generator.ts by default.
This commit is contained in:
Aaron Dodson
2022-08-24 16:06:38 -07:00
committed by GitHub
parent e50ad59ffe
commit 3a36ed5116
19 changed files with 187 additions and 325 deletions

View File

@@ -135,8 +135,8 @@ export class MenuItem {
* @returns value Value associated with the menu item.
* @internal
*/
getValue(): AnyDuringMigration {
return this.opt_value;
getValue(): string|null {
return this.opt_value ?? null;
}
/**
@@ -245,7 +245,7 @@ export class MenuItem {
* @param obj Used as the 'this' object in fn when called.
* @internal
*/
onAction(fn: (p1: MenuItem) => AnyDuringMigration, obj: AnyDuringMigration) {
onAction(fn: (p1: MenuItem) => void, obj: object) {
this.actionHandler_ = fn.bind(obj);
}
}