UNPKG

@tripetto/block-calculator

Version:

Calculator block for Tripetto.

28 lines (27 loc) 636 B
import { Context } from "@tripetto/runner"; export type TConstants = | "π" | "e" | "γ" | "c" | "random" | "timestamp" | "year" | "month" | "day" | "day-of-week" | "hour" | "minute" | "second" | "millisecond" | "timezone" | "branch"; export declare const CONSTANTS: TConstants[]; export declare function isConstant(value: string | number | undefined): boolean; export declare function castToConstant( value: string | number | undefined ): TConstants; export declare function getConstant( constant: TConstants | string, context: Context ): number | undefined;