Skip to content

Function: makeParameter

core.makeParameter

makeParameter<T, O>(paramDefinition): ParamDefFromOptionsUnion<T, O>

Create a definition for a parameter for a formula or sync.

Example

makeParameter({type: ParameterType.String, name: 'myParam', description: 'My description'});

Example

makeParameter({type: ParameterType.StringArray, name: 'myArrayParam', description: 'My description'});

Type parameters

Name Type
T extends ParameterType
O extends ParameterOptions<T>

Parameters

Name Type
paramDefinition O

Returns

ParamDefFromOptionsUnion<T, O>

Defined in

api.ts:419