Skip to content

Commit 2ae5a98

Browse files
committed
fixed component method's return type
1 parent fa3c905 commit 2ae5a98

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils/component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import BaseElement from "./base-element";
55
import { Props, generateProps } from "./props";
66

77

8-
export default function component(fn: Function, styles: CSSResult[] = []) {
8+
export default function component(fn: Function, styles: CSSResult[] = []): void {
99
const componentName = toDashedString(fn.name);
1010

1111
if (customElements.get(componentName)) {
@@ -34,6 +34,4 @@ export default function component(fn: Function, styles: CSSResult[] = []) {
3434
hooks.LitClass = ComponentClass;
3535

3636
customElements.define(componentName, ComponentClass);
37-
38-
return ComponentClass;
3937
}

0 commit comments

Comments
 (0)