mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-13 23:37:30 +08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user