mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
* chore: rename CopyData to ICopyData * fix: ICopyable data structures * fix: switch clipboard over to use new copy data interfaces * chore: rename saveInfo to somthing more descriptive
28 lines
527 B
TypeScript
28 lines
527 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 {ISelectable} from './i_selectable.js';
|
|
|
|
export interface ICopyable extends ISelectable {
|
|
/**
|
|
* Encode for copying.
|
|
*
|
|
* @returns Copy metadata.
|
|
*/
|
|
toCopyData(): ICopyData | null;
|
|
}
|
|
|
|
export namespace ICopyable {
|
|
export interface ICopyData {
|
|
paster: string;
|
|
}
|
|
}
|
|
|
|
export type ICopyData = ICopyable.ICopyData;
|