mirror of
https://github.com/archtechx/alpine-typescript.git
synced 2025-12-11 22:34:03 +00:00
Element -> HTMLElement
This commit is contained in:
parent
1a121cc6bd
commit
791d2795a5
2 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@leanadmin/alpine-typescript",
|
||||
"version": "0.1.8",
|
||||
"version": "0.1.9",
|
||||
"description": "TypeScript support for Alpine.js",
|
||||
"main": "dist/index.js",
|
||||
"repository": {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue