Function: 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
]>