Skip to content

Commit

Permalink
Export StaticValue from lit-html/static (#3186)
Browse files Browse the repository at this point in the history
* 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 <augustinekim@google.com>

* Remove unnecessary re-export for StaticValue type

Co-authored-by: Augustine Kim <augustinekim@google.com>
  • Loading branch information
dfreedm and augustjk committed Jul 28, 2022
1 parent 18f8a90 commit 3766ae4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hip-eels-ring.md
@@ -0,0 +1,5 @@
---
'lit-html': patch
---

`StaticValue` interface type is now exported.
2 changes: 1 addition & 1 deletion packages/lit-html/src/static.ts
Expand Up @@ -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;

Expand Down

0 comments on commit 3766ae4

Please sign in to comment.