Skip to content

Commit

Permalink
Add missing return type
Browse files Browse the repository at this point in the history
  • Loading branch information
ngasull committed Jul 24, 2024
1 parent 53a4bcb commit 189dc3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion element/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export const element = <
export const define = <Props, Ref extends HTMLElement>(
name: `${string}-${string}`,
ElementClass: CustomElement<Props, Ref>,
) => {
): void => {
ElementClass.tag = name;
ElementClass.prototype && customElements.define(name, ElementClass, {
extends: ElementClass[$extends],
Expand Down

0 comments on commit 189dc3d

Please sign in to comment.