From 3766ae4c35edf794aa30ee2d738c6f63fdda44e5 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Thu, 28 Jul 2022 16:11:52 -0700 Subject: [PATCH] Export StaticValue from lit-html/static (#3186) * Export StaticValue from lit-html/static Class properties initialized with a literal are implicitly typed as `any` because `StaticValue` is not exported. * Add changeset * Update .changeset/hip-eels-ring.md Co-authored-by: Augustine Kim * Remove unnecessary re-export for StaticValue type Co-authored-by: Augustine Kim --- .changeset/hip-eels-ring.md | 5 +++++ packages/lit-html/src/static.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/hip-eels-ring.md diff --git a/.changeset/hip-eels-ring.md b/.changeset/hip-eels-ring.md new file mode 100644 index 0000000000..46294d62b7 --- /dev/null +++ b/.changeset/hip-eels-ring.md @@ -0,0 +1,5 @@ +--- +'lit-html': patch +--- + +`StaticValue` interface type is now exported. diff --git a/packages/lit-html/src/static.ts b/packages/lit-html/src/static.ts index 5408f3c5d7..8a7b9d5903 100644 --- a/packages/lit-html/src/static.ts +++ b/packages/lit-html/src/static.ts @@ -9,7 +9,7 @@ import {html as coreHtml, svg as coreSvg, TemplateResult} from './lit-html.js'; -interface StaticValue { +export interface StaticValue { /** The value to interpolate as-is into the template. */ _$litStatic$: string;