Skip to content

Commit b0f8860

Browse files
fix(types): update types
1 parent 642a663 commit b0f8860

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/types.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { ElementInternals } from "./element-internals";
2+
13
export interface IAom {
24
ariaAtomic: string;
35
ariaAutoComplete: string;
@@ -48,12 +50,14 @@ export interface IElementInternals extends IAom {
4850
validationMessage?: string,
4951
anchor?: HTMLElement
5052
) => void;
53+
shadowRoot: ShadowRoot;
5154
validationMessage: string;
5255
validity: globalThis.ValidityState;
5356
willValidate: boolean;
5457
}
5558

5659
export interface ICustomElement extends HTMLElement {
60+
constructor: (...args: any[]) => HTMLElement;
5761
attributeChangedCallback?: (
5862
name: string,
5963
oldValue: any,
@@ -62,6 +66,7 @@ export interface ICustomElement extends HTMLElement {
6266
connectedCallback?: () => void;
6367
disconnectedCallback?: () => void;
6468
attachedCallback?: () => void;
69+
attachInternals: () => IElementInternals;
6570
formDisabledCallback?: (isDisabled: boolean) => void;
6671
formResetCallback?: () => void;
6772
formAssociatedCallback?: (form: HTMLFormElement) => void;

0 commit comments

Comments
 (0)