replaceVariables
Function: replaceVariables()
replaceVariables<
T>(object,replacements):T
Defined in: packages/core/src/templates/templates.ts:94
Replace the ${...} variables in every string of an object with exactly the given replacements
Type Parameters
T
T = any
Parameters
object
T
the string or object, not modified
replacements
Record<string, any>
the variables available to the templates
Returns
T
a copy with the variables replaced