Files
blockly/core/interfaces/i_copyable.ts
Rachel Fenichel 1d1a927628 chore: remove alias comments (#6816)
* chore: remove alias comments

* chore: format

* chore: remove extra newlines

* chore: fix bad replaces
2023-02-06 10:08:55 -08:00

38 lines
766 B
TypeScript

/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* The interface for an object that is copyable.
*
* @namespace Blockly.ICopyable
*/
import * as goog from '../../closure/goog/goog.js';
goog.declareModuleId('Blockly.ICopyable');
import type {WorkspaceSvg} from '../workspace_svg.js';
import type {ISelectable} from './i_selectable.js';
export interface ICopyable extends ISelectable {
/**
* Encode for copying.
*
* @returns Copy metadata.
* @internal
*/
toCopyData(): CopyData|null;
}
export namespace ICopyable {
export interface CopyData {
saveInfo: Object|Element;
source: WorkspaceSvg;
typeCounts: {[key: string]: number}|null;
}
}
export type CopyData = ICopyable.CopyData;