UNPKG

pxt-core

Version:

Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors

15 lines (14 loc) 495 B
/// <reference path="../../pxtlib.d.ts" /> import * as Blockly from "blockly"; import { FieldCustom } from "./field_utils"; export declare class FieldTsExpression extends Blockly.FieldTextInput implements FieldCustom { isFieldCustom_: boolean; protected pythonMode: boolean; /** * Same as parent, but adds a different class to text when disabled */ updateEditable(): void; setPythonEnabled(enabled: boolean): void; getText(): string; applyColour(): void; }