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
| Parameter | Type |
|---|---|
coreTag | typeof coreHtml | typeof coreSvg |
Returns
(strings: TemplateStringsArray, ...values: unknown[]) => TemplateResult