Skip to content

TemplateVar

Algorand TypeScript


Algorand TypeScript / index / TemplateVar

TemplateVar<T>(variableName, prefix): T

Defined in: 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

T

string

The key used to identify the variable.

string = 'TMPL_'

The prefix to apply the variable name (Defaults to ‘TMPL_‘)

T