Cleanup and improve JSDoc typing

This commit is contained in:
Oliver-Akins 2024-05-05 16:39:56 -06:00
parent 718bd8398d
commit 0972a0491f
2 changed files with 8 additions and 4 deletions

View file

@ -4,6 +4,8 @@ import { StyledShadowElement } from "./mixins/Styles.mjs";
Attributes:
@property {string} name - The name of the icon, takes precedence over the path
@property {string} path - The path of the icon file
@extends {HTMLElement}
*/
export class DotDungeonIcon extends StyledShadowElement(HTMLElement) {
static elementName = `dd-icon`;

View file

@ -13,6 +13,8 @@ Attributes:
Styling:
- `--height`: Controls the height of the element + the width of the buttons (default: 1.25rem)
- `--width`: Controls the width of the number input (default 50px)
@extends {HTMLElement}
*/
export class DotDungeonIncrementer
extends StyledShadowElement(
@ -42,14 +44,14 @@ extends StyledShadowElement(
get form() {
return this._internals.form;
}
};
get name() {
return this.getAttribute(`name`);
}
};
set name(value) {
this.setAttribute(`name`, value);
}
};
get value() {
return this.getAttribute(`value`);
@ -60,7 +62,7 @@ extends StyledShadowElement(
get type() {
return `number`;
}
};
connectedCallback() {
super.connectedCallback();