Skip to content

Variable: withWatch

ts
const withWatch: (coreTag: typeof coreHtml | typeof coreSvg) => (strings: TemplateStringsArray, ...values: unknown[]) => TemplateResult;

Defined in: @lit-labs/signals:

Wraps a lit-html template tag function (html or svg) to add support for automatically wrapping Signal instances in the watch() directive.

Parameters

ParameterType
coreTagtypeof coreHtml | typeof coreSvg

Returns

(strings: TemplateStringsArray, ...values: unknown[]) => TemplateResult