@tripetto/block-calculator
Version:
Calculator block for Tripetto.
13 lines (12 loc) • 535 B
TypeScript
/** Dependencies */
import { Context, IVariable, Slots, Value } from "@tripetto/runner";
import { IOperation } from "./operation";
export declare function calculator(
context: Context,
operations: IOperation[],
startSlot: Value<number, Slots.Number | Slots.Numeric> | undefined,
resultSlot: Value<number, Slots.Number | Slots.Numeric> | undefined,
variableFor: (id: string) => IVariable | undefined,
parseVariables: (id: string) => string,
getSlot?: (id: string) => Value | undefined
): number | undefined;