Fix single line doc comments

This commit is contained in:
barsdeveloper
2022-09-24 22:41:46 +02:00
parent 9a4d323a87
commit 7e55d41ec1
40 changed files with 2649 additions and 3008 deletions

View File

@@ -1,21 +1,15 @@
/**
* @typedef {import("./IEntity").default} IEntity
*/
/** @typedef {import("./IEntity").default} IEntity */
export default class CalculatedType {
#f
/**
* @param {Function} f
*/
/** @param {Function} f */
constructor(f) {
this.#f = f
}
/**
* @param {IEntity} entity
*/
/** @param {IEntity} entity */
calculate(entity) {
return this.#f(entity)
}

View File

@@ -6,9 +6,7 @@ export default class IntegerEntity extends IEntity {
value: Number,
}
/**
* @param {Object | Number | String} options
*/
/** @param {Object | Number | String} options */
constructor(options = 0) {
super(options)
this.value = Math.round(this.value)

View File

@@ -38,9 +38,7 @@ export default class ObjectEntity extends IEntity {
return this.Name
}
/**
* @returns {[String, Number]}
*/
/** @returns {[String, Number]} */
getNameAndCounter() {
const result = this.getObjectName(false).match(ObjectEntity.nameRegex)
if (result && result.length == 3) {

View File

@@ -1,6 +1,4 @@
/**
* @template T
*/
/** @template T */
export default class TypeInitialization {
/** @type {Constructor|Array<Constructor>} */