mirror of
https://github.com/google/blockly.git
synced 2026-05-12 23:20:10 +02:00
362ec011ce
* fix: add ~70% of internal attributes * fix: work on manually adding more @internal annotations * fix: add more manual internal annotations * fix: rename package typos to internal * fix: final manual fixes for internal annotations * chore: format * chore: make unnecessary multiline jsdoc a single line * fix: fix internal tags in serialization exceptions
39 lines
868 B
TypeScript
39 lines
868 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview The interface for an object that is copyable.
|
|
*/
|
|
|
|
/**
|
|
* The interface for an object that is copyable.
|
|
* @namespace Blockly.ICopyable
|
|
*/
|
|
import * as goog from '../../closure/goog/goog.js';
|
|
goog.declareModuleId('Blockly.ICopyable');
|
|
|
|
/* eslint-disable-next-line no-unused-vars */
|
|
/* eslint-disable-next-line no-unused-vars */
|
|
import {WorkspaceSvg} from '../workspace_svg.js';
|
|
|
|
import {ISelectable} from './i_selectable.js';
|
|
|
|
|
|
/** @alias Blockly.ICopyable */
|
|
export interface ICopyable extends ISelectable {
|
|
/**
|
|
* Encode for copying.
|
|
* @return Copy metadata.
|
|
* @internal
|
|
*/
|
|
toCopyData: AnyDuringMigration;
|
|
}
|
|
export interface CopyData {
|
|
saveInfo: AnyDuringMigration|Element;
|
|
source: WorkspaceSvg;
|
|
typeCounts: AnyDuringMigration|null;
|
|
}
|