1
0
Fork 0
mirror of https://github.com/archtechx/alpine-typescript.git synced 2025-12-12 06:44:03 +00:00

Element -> HTMLElement

This commit is contained in:
Samuel Štancl 2021-02-26 22:17:43 +01:00
parent 1a121cc6bd
commit 791d2795a5
2 changed files with 3 additions and 3 deletions

View file

@ -4,10 +4,10 @@ type ComponentConstructor = (...args: any[]) => object;
export class AlpineComponent {
/** Retrieve the root component DOM node. */
$el?: Element;
$el?: HTMLElement;
/** Retrieve DOM elements marked with x-ref inside the component. */
$refs?: { [name: string]: Element };
$refs?: { [name: string]: HTMLElement };
/** Retrieve the native browser "Event" object within an event listener. */
$event?: Event;