Skip to content

Commit

Permalink
Remove abstract from members of ElementRendererConstructor type (#3584)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfagnani committed Jan 25, 2023
1 parent d6ceee1 commit 61ec3da
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
@@ -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
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 61ec3da

Please sign in to comment.