UNPKG

@tripetto/block-number

Version:

Number block for Tripetto.

28 lines (27 loc) 967 B
/** Dependencies */ import { NodeBlock, Slots } from "@tripetto/runner"; import "./condition"; /** * 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 abstract class Number extends NodeBlock<{ readonly prefill?: number; readonly operations?: IOperation[]; }> { /** Contains the calculator slot. */ readonly calculatorSlot: | import("@tripetto/runner").Value<number, Slots.Numeric> | undefined; /** Contains the number slot with the value. */ readonly numberSlot: import("@tripetto/runner").Value< number, Slots.Numeric >; /** Contains if the block is required. */ readonly required: boolean; }