MCPcopy
hub / github.com/lit/lit / unsafeStatic

Function unsafeStatic

packages/lit-html/src/static.ts:68–71  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

66 * since they effectively create a new template.
67 */
68export const unsafeStatic = (value: string): StaticValue => ({
69 ['_$litStatic$']: value,
70 r: brand,
71});
72
73const textFromStatic = (value: StaticValue) => {
74 if (value['_$litStatic$'] !== undefined) {

Callers 5

tFunction · 0.85
static_test.tsFile · 0.85
lit-html_test.tsFile · 0.85
renderTemplateFunction · 0.85
renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…