pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
11 lines (10 loc) • 848 B
TypeScript
/// <reference path="../../pxtlib.d.ts" />
import * as Blockly from "blockly";
import { BlockCompilationResult, BlockCompileOptions, Environment } from "./environment";
export declare const PXT_WARNING_ID = "WARNING_MESSAGE";
export declare function compileBlockAsync(b: Blockly.Block, blockInfo: pxtc.BlocksInfo): Promise<BlockCompilationResult>;
export declare function compileAsync(b: Blockly.Workspace, blockInfo: pxtc.BlocksInfo, opts?: BlockCompileOptions): Promise<BlockCompilationResult>;
export declare function callKey(e: Environment, b: Blockly.Block): string;
export declare const AUTO_DISABLED_REASON = "pxt_automatic_disabled";
export declare function compileExpression(e: Environment, b: Blockly.Block, comments: string[]): pxt.blocks.JsNode;
export declare function workerOpAsync(op: string, arg: pxtc.service.OpArg): Promise<any>;