Skip to content

createVariable ​

Creates a variable with a given name and resolved type inside a collection.

Signature ​

typescript
createVariable(name: string, collection: VariableCollection, resolvedType: VariableResolvedDataType): Variable

Parameters ​

  • name: The name of the newly created variable
  • collection: A variable collection. Make sure to pass a collection object here.
  • resolvedType: The resolved type of this variable