UNPKG

pxt-core

Version:

Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors

17 lines (16 loc) 832 B
import { StringMap } from "./utils"; export declare type ConfirmEditCallback = (mutation: Element) => void; export declare class FunctionManager { private static instance; static getInstance(): FunctionManager; protected _editFunctionExternal: (mutation: Element, cb: ConfirmEditCallback) => void; protected typeIcons: StringMap<string>; protected typeArgumentNames: StringMap<string>; protected constructor(); getIconForType(typeName: string): string; setIconForType(typeName: string, icon: string): void; setArgumentNameForType(typeName: string, name: string): void; getArgumentNameForType(typeName: string): string; setEditFunctionExternal(impl: (mutation: Element, cb: ConfirmEditCallback) => void): void; editFunctionExternal(mutation: Element, cb: ConfirmEditCallback): void; }