UNPKG

@tripetto/block-number

Version:

Number block for Tripetto.

22 lines (21 loc) 796 B
/** Dependencies */ import { Collection, NodeBlock, Slots } from "@tripetto/builder"; /** * 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 { ICalculator, Operation } from "@tripetto/block-calculator"; import "./namespace/unmount"; export declare class Number extends NodeBlock implements ICalculator { readonly startBlank = false; numberSlot: Slots.Numeric; prefill?: number; readonly operations: Collection.Provider<Operation, ICalculator>; get block(): this; get firstANS(): string; defineSlot(): void; defineEditor(): void; defineCondition(): void; }