UNPKG

@tripetto/block-variable

Version:

Variable block for Tripetto.

26 lines (25 loc) 871 B
/** Dependencies */ import { HeadlessBlock, Slots, Value } from "@tripetto/runner"; import "./boolean"; import "./date"; import "./numeric"; import "./text"; /** * This block has a dependency on the calculator block. We need to activate a * separate namespace for it to guard against version conflicts when another * block depends on another version of the calculator block. */ import "./namespace/mount"; import { IOperation } from "@tripetto/block-calculator/runner"; import "./namespace/unmount"; export declare class Variable extends HeadlessBlock<{ readonly prefill?: string | number | boolean; readonly calculator?: true | undefined; readonly operations?: IOperation[]; }> { readonly variableSlot: Value< import("@tripetto/runner").TSerializeTypes, Slots.Slot<import("@tripetto/runner").TSerializeTypes> >; do(): void; }