Skip to content

@burnmark-io/designer-core


@burnmark-io/designer-core / validateVariables

Function: validateVariables()

validateVariables(doc, variables): ValidationResult

Defined in: packages/core/src/template.ts:49

Check a set of variables against the placeholders referenced by a document. Reports missing (referenced but not supplied), unused (supplied but not referenced), and any warnings.

Parameters

doc

LabelDocument

variables

Record<string, string>

Returns

ValidationResult

Not affiliated with Dymo, Brother, Avery, or any hardware vendor.