Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers committed Jul 13, 2023
1 parent c71e6f8 commit 206e3a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/internal/shoelace-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ export default class ShoelaceElement extends LitElement {
return event as GetCustomEventType<T>;
}

/* eslint-disable */
// @ts-expect-error this gets injected
/* eslint-disable-next-line */
static version: string = typeof shoelaceVersion !== 'undefined' ? shoelaceVersion : '';
/* eslint-disable */

static define(name: string) {
define(name, this);
Expand All @@ -117,7 +118,7 @@ function define(name: string, elementConstructor: CustomElementConstructor | typ
| typeof ShoelaceElement;

if (!currentElementConstructor) {
window.customElements.define(name, toAnonymousClass(elementConstructor) as CustomElementConstructor);
window.customElements.define(name, toAnonymousClass(elementConstructor) as unknown as CustomElementConstructor);
return;
}

Expand Down

0 comments on commit 206e3a9

Please sign in to comment.