mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-06 10:47:30 +08:00
Fix single line doc comments
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
/**
|
||||
* @template T
|
||||
*/
|
||||
/** @template T */
|
||||
export default class TypeInitialization {
|
||||
|
||||
/** @type {Constructor|Array<Constructor>} */
|
||||
|
||||
Reference in New Issue
Block a user