pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
11 lines (10 loc) • 753 B
TypeScript
/// <reference path="../pxtlib.d.ts" />
import * as Blockly from "blockly";
export interface ComposableMutation {
mutationToDom(mutationElement: Element): Element;
domToMutation(savedElement: Element): void;
}
export declare function appendMutation(block: Blockly.Block, mutation: ComposableMutation): void;
export declare function initVariableArgsBlock(b: Blockly.Block, handlerArgs: pxt.blocks.HandlerArg[]): void;
export declare function initExpandableBlock(info: pxtc.BlocksInfo, b: Blockly.Block, def: pxtc.ParsedBlockDef, comp: pxt.blocks.BlockCompileInfo, toggle: boolean, addInputs: () => void): void;
export declare function initVariableReporterArgs(b: Blockly.Block, handlerArgs: pxt.blocks.HandlerArg[], info: pxtc.BlocksInfo): void;