diff --git a/src/internal/webawesome-element.ts b/src/internal/webawesome-element.ts index e585ba361..17e2364ed 100644 --- a/src/internal/webawesome-element.ts +++ b/src/internal/webawesome-element.ts @@ -226,6 +226,7 @@ export class WebAwesomeFormAssociatedElement this.addEventListener('invalid', this.emitInvalid); } } + states: CustomStateSet; connectedCallback() { super.connectedCallback(); @@ -493,7 +494,6 @@ export class WebAwesomeFormAssociatedElement // Custom states addCustomState(state: string) { try { - // @ts-expect-error CustomStateSet doesn't exist in TS yet. (this.internals.states as Set).add(state); } catch (_) { // Without this, test suite errors. @@ -504,7 +504,6 @@ export class WebAwesomeFormAssociatedElement deleteCustomState(state: string) { try { - // @ts-expect-error CustomStateSet doesn't exist in TS yet. (this.internals.states as Set).delete(state); } catch (_) { // Without this, test suite errors. @@ -531,7 +530,6 @@ export class WebAwesomeFormAssociatedElement let bool = false; try { - // @ts-expect-error CustomStateSet doesn't exist in TS yet. bool = (this.internals.states as Set).has(state); } catch (_) { // Without this, test suite errors.