UNPKG

pxt-core

Version:

Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors

13 lines (12 loc) 506 B
/// <reference path="../../pxtlib.d.ts" /> import * as Blockly from "blockly"; import { FieldDropdown } from "./field_dropdown"; export declare class FieldUserEnum extends FieldDropdown { private opts; constructor(opts: pxtc.EnumInfo); init(): void; onItemSelected_(menu: Blockly.Menu, menuItem: Blockly.MenuItem): void; doClassValidation_(value: any): string; private initVariables; } export declare function getNextValue(members: [string, number][], opts: pxtc.EnumInfo): number;