mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
chore: Remove some more uses of AnyDuringMigration (#6785)
* chore: Remove uses of AnyDuringMigration in workspace_comment_svg.ts. * chore: Remove uses of AnyDuringMigration in toolbox.ts. * chore: Remove uses of AnyDuringMigration in field_colour.ts. * chore: Remove uses of AnyDuringMigration from field_image.ts. * chore: Remove uses of AnyDuringMigration from workspace.ts. * Update core/workspace_comment_svg.ts Co-authored-by: Christopher Allen <cpcallen+github@gmail.com> * chore: Remove uses of AnyDuringMigration in collapsible_category.ts. * chore: Revert unary - change to make clang-format happy. * chore: Remove unnecessary quotes in toolbox.ts. * Update core/workspace_comment_svg.ts Co-authored-by: Christopher Allen <cpcallen+github@gmail.com> --------- Co-authored-by: Christopher Allen <cpcallen+github@gmail.com>
This commit is contained in:
@@ -31,7 +31,7 @@ export namespace ICopyable {
|
||||
export interface CopyData {
|
||||
saveInfo: Object|Element;
|
||||
source: WorkspaceSvg;
|
||||
typeCounts: Object|null;
|
||||
typeCounts: {[key: string]: number}|null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -61,3 +61,11 @@ export interface ISelectableToolboxItem extends IToolboxItem {
|
||||
*/
|
||||
onClick(_e: Event): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Type guard that checks whether an IToolboxItem is an ISelectableToolboxItem.
|
||||
*/
|
||||
export function isSelectableToolboxItem(toolboxItem: IToolboxItem):
|
||||
toolboxItem is ISelectableToolboxItem {
|
||||
return toolboxItem.isSelectable();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user