Skip to content

Documentation / @imvu/chkn / expandTemplate

Function: expandTemplate() ​

ts
function expandTemplate(delta, imports): TemplateDict;

Defined in: packages/chkn/src/template.ts:121

Expand a delta-form template: replace each __DATAIMPORT with the imported template (looked up by URL in imports, already expanded) and prune deletion markers. Returns a new dictionary; the input is not modified.

Parameters ​

ParameterType
deltaTemplateDict
importsReadonlyMap<string, TemplateDict | null>

Returns ​

TemplateDict

Released under the MIT License.