Skip to content

Type alias: FormulaDefinition<ParamDefsT, ResultT, SchemaT>

core.FormulaDefinition

Ƭ FormulaDefinition<ParamDefsT, ResultT, SchemaT>: ResultT extends String ? StringFormulaDef<ParamDefsT> : ResultT extends Number ? NumericFormulaDef<ParamDefsT> : ResultT extends Boolean ? BooleanFormulaDef<ParamDefsT> : ResultT extends Array ? ArrayFormulaDef<ParamDefsT, SchemaT> : ObjectFormulaDef<ParamDefsT, SchemaT>

A formula definition accepted by makeFormula.

Type parameters

Name Type
ParamDefsT extends ParamDefs
ResultT extends ValueType
SchemaT extends Schema

Defined in

api.ts:1568