@tripetto/block-calculator
Version:
Calculator block for Tripetto.
20 lines (19 loc) • 603 B
TypeScript
import { EditorOrchestrator, Forms, IVariable } from "@tripetto/builder";
import { Operation } from "../operation";
export declare const typeControl: (
operation: Operation,
editor: EditorOrchestrator<Operation>,
showANS?: boolean,
showConstants?: boolean,
showNumber?: boolean,
property?: keyof Operation,
autoClose?: boolean,
autoFocus?: boolean,
title?: string,
onChange?:
| ((
type: "number" | "ans" | "variable" | "constant",
variable?: IVariable
) => void)
| undefined
) => [Forms.Form, Forms.Numeric];