Type Alias: Formula<ParamDefsT, ResultT, SchemaT>¶
Formula<
ParamDefsT,ResultT,SchemaT> =ResultTextendsString?StringPackFormula<ParamDefsT> :ResultTextendsNumber?NumericPackFormula<ParamDefsT> :ResultTextendsBoolean?BooleanPackFormula<ParamDefsT> :ResultTextendsArray?ObjectPackFormula<ParamDefsT,ArraySchema<SchemaT>> :ObjectPackFormula<ParamDefsT,SchemaT>
Defined in: api.ts:1066
A pack formula, complete with metadata about the formula like its name, description, and parameters, as well as the implementation of that formula.
This is the type for an actual user-facing formula, rather than other formula-shaped resources within a pack, like an autocomplete metadata formula or a sync getter formula.
Type Parameters¶
| Type Parameter | Default type |
|---|---|
ParamDefsT extends ParamDefs |
ParamDefs |
ResultT extends ValueType |
ValueType |
SchemaT extends Schema |
Schema |