Skip to content

Commit

Permalink
Merge be81c2c into 023cdeb
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfagnani committed Jan 18, 2023
2 parents 023cdeb + be81c2c commit bf6610f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tough-beans-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lit-labs/ssr': patch
---

Remove `abstract` from members of the ElementRendererConstructor type
6 changes: 4 additions & 2 deletions packages/labs/ssr/src/lib/element-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ import {escapeHtml} from './util/escape-html.js';
import type {RenderInfo} from './render-value.js';
import type {RenderResult} from './render-result.js';

export type Constructor<T> = {new (): T};
type Interface<T> = {
[P in keyof T]: T[P];
};

export type ElementRendererConstructor = (new (
tagName: string
) => ElementRenderer) &
) => Interface<ElementRenderer>) &
typeof ElementRenderer;

type AttributesMap = Map<string, string>;
Expand Down

0 comments on commit bf6610f

Please sign in to comment.