TemplateVar
@algorandfoundation/algorand-typescript
@algorandfoundation/algorand-typescript / index / TemplateVar
Function: TemplateVar()
Section titled “Function: TemplateVar()”TemplateVar<
T>(variableName,prefix):T
Defined in: packages/algo-ts/src/template-var.ts:10
Declare a template variable which can be replaced at compile time with an environment specific value.
The final variable name will be prefix + variableName
Type Parameters
Section titled “Type Parameters”• T
Parameters
Section titled “Parameters”variableName
Section titled “variableName”string
The key used to identify the variable.
prefix
Section titled “prefix”string = 'TMPL_'
The prefix to apply the variable name (Defaults to ‘TMPL_‘)
Returns
Section titled “Returns”T