mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-21 14:24:47 +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:
@@ -19,14 +19,14 @@ export default class IntegerEntity extends IEntity {
|
||||
return Grammar.integer.map(v => new this(v))
|
||||
}
|
||||
|
||||
/** @param {Number | AttributeInformation} value */
|
||||
constructor(value = 0) {
|
||||
if (value.constructor !== Object) {
|
||||
// @ts-expect-error
|
||||
value = {
|
||||
super(value.constructor === Object
|
||||
? value
|
||||
: {
|
||||
value: value,
|
||||
}
|
||||
}
|
||||
super(value)
|
||||
)
|
||||
/** @type {Number} */ this.value
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user