Large typedef import cleanup and smaller fixes

This commit is contained in:
barsdeveloper
2023-04-15 15:29:21 +02:00
parent baf40a9094
commit a82f61ac4a
76 changed files with 316 additions and 298 deletions

View File

@@ -3,8 +3,6 @@ import PinTemplate from "./PinTemplate.js"
import SVGIcon from "../../SVGIcon.js"
import Utility from "../../Utility.js"
/** @typedef {import("../../element/PinElement").default} PinElement */
export default class ExecPinTemplate extends PinTemplate {
renderIcon() {

View File

@@ -1,7 +1,5 @@
import IntPinTemplate from "./IntPinTemplate.js"
/** @typedef {import("../../entity/IntegerEntity").default} IntegerEntity */
export default class Int64PinTemplate extends IntPinTemplate {
/** @param {String[]} values */

View File

@@ -1,7 +1,7 @@
import { html } from "lit"
import INumericPinTemplate from "./INumericPinTemplate.js"
/** @typedef {import("../../entity/IntegerEntity").default} IntegerEntity */
/** @typedef {import("../../entity/IntegerEntity.js").default} IntegerEntity */
/** @extends INumericPinTemplate<IntegerEntity> */
export default class IntPinTemplate extends INumericPinTemplate {

View File

@@ -3,8 +3,8 @@ import MinimalPinTemplate from "./MinimalPinTemplate.js"
import Utility from "../../Utility.js"
/**
* @typedef {import("../node/KnotNodeTemplate").default} KnotNodeTemplate
* @typedef {import("../../entity/PinEntity").default} KnotEntity
* @typedef {import("../../entity/PinEntity.js").default} KnotEntity
* @typedef {import("../node/KnotNodeTemplate.js").default} KnotNodeTemplate
*/
/** @extends MinimalPinTemplate<KnotEntity> */

View File

@@ -5,9 +5,9 @@ import ElementFactory from "../../element/ElementFactory.js"
import PinTemplate from "./PinTemplate.js"
/**
* @typedef {import("../../element/WindowElement").default} WindowElement
* @typedef {import("../../element/WindowElement").WindowElementConstructor} WindowElementConstructor
* @typedef {import("../../entity/LinearColorEntity").default} LinearColorEntity
* @typedef {import("../../element/WindowElement.js").default} WindowElement
* @typedef {import("../../element/WindowElement.js").WindowElementConstructor} WindowElementConstructor
* @typedef {import("../../entity/LinearColorEntity.js").default} LinearColorEntity
*/
/** @extends PinTemplate<LinearColorEntity> */

View File

@@ -1,13 +1,14 @@
import { html } from "lit"
import PinTemplate from "./PinTemplate.js"
/** @typedef {import("../../entity/IEntity.js").AnyValue} AnyValue */
/**
* @template T
* @typedef {import("../../element/PinElement").default<T>} PinElement
* @template {AnyValue} T
* @typedef {import("../../element/PinElement.js").default<T>} PinElement
*/
/**
* @template T
* @template {AnyValue} T
* @extends PinTemplate<PinElement<T>>
*/
export default class MinimalPinTemplate extends PinTemplate {

View File

@@ -1,7 +1,5 @@
import IInputPinTemplate from "./IInputPinTemplate.js"
/** @typedef {import("../../element/PinElement").default} PinElement */
export default class NamePinTemplate extends IInputPinTemplate {
static singleLineInput = true

View File

@@ -7,12 +7,12 @@ import VariableConversionNodeTemplate from "../node/VariableConversionNodeTempla
import VariableOperationNodeTemplate from "../node/VariableOperationNodeTemplate.js"
/**
* @typedef {import("../../input/IInput").default} IInput
* @typedef {import("../../input/IInput.js").default} IInput
* @typedef {import("lit").PropertyValues} PropertyValues
*/
/**
* @template T
* @typedef {import("../../element/PinElement").default<T>} PinElement
* @typedef {import("../../element/PinElement.js").default<T>} PinElement
*/
/**

View File

@@ -3,7 +3,7 @@ import INumericPinTemplate from "./INumericPinTemplate.js"
import RotatorEntity from "../../entity/RotatorEntity.js"
import Utility from "../../Utility.js"
/** @typedef {import("../../entity/RotatorEntity").default} Rotator */
/** @typedef {import("../../entity/RotatorEntity.js").default} Rotator */
/** @extends INumericPinTemplate<Rotator> */
export default class RotatorPinTemplate extends INumericPinTemplate {