Files
blockly/core/interfaces/i_copyable.ts
Beka Westberg ed531ec313 chore: remove all namespace comments (#6903)
* chore: remove all namespace comments

* chore: fix lint
2023-03-20 09:43:58 -07:00

33 lines
674 B
TypeScript

/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
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;