Skip to content

Function: makeParameter

core.makeParameter

makeParameter<T>(paramDefinition): ParamDef<ParameterTypeMap[T]>

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

Parameters

Name Type
paramDefinition ParameterOptions<T>

Returns

ParamDef<ParameterTypeMap[T]>

Defined in

api.ts:388