import {BlockToolData} from '../tools'; import {BlockTuneData} from "../block-tunes/block-tune-data"; /** * Output of one Tool * * @template Type - the string literal describing a tool type * @template Data - the structure describing a data object supported by the tool */ export interface OutputBlockData { /** * Tool type */ type: Type; /** * Saved Block data */ data: BlockToolData; /** * Block Tunes data */ tunes?: {[name: string]: BlockTuneData}; } export interface OutputData { /** * Editor's version */ version?: string; /** * Timestamp of saving in milliseconds */ time?: number; /** * Saved Blocks */ blocks: OutputBlockData[]; }