Refactor jsdoc types (#16)

* WIP

* Fix type 1

* Missing types info

* Some fixes

* Several types refactoring and fixes

* WIP

* Fix grammar
This commit is contained in:
barsdeveloper
2023-09-22 22:56:33 +02:00
committed by GitHub
parent 78c62ee59a
commit fdd86ce5de
78 changed files with 413 additions and 1010 deletions

View File

@@ -1,15 +1,9 @@
import { html } from "lit"
/**
* @typedef {import("../element/IElement.js").default} IElement
* @typedef {import("../input/IInput.js").default} IInput
* @typedef {import("lit").PropertyValues} PropertyValues
*/
/** @template {IElement} T */
/** @template {IElement} ElementT */
export default class ITemplate {
/** @type {T} */
/** @type {ElementT} */
element
get blueprint() {
@@ -22,7 +16,7 @@ export default class ITemplate {
return this.#inputObjects
}
/** @param {T} element */
/** @param {ElementT} element */
initialize(element) {
this.element = element
}