Type initialization using objects

This commit is contained in:
barsdeveloper
2023-01-02 00:22:50 +01:00
parent d391480f2c
commit 984bf32b51
43 changed files with 1511 additions and 831 deletions

View File

@@ -6,10 +6,13 @@ export default class IntegerEntity extends IEntity {
value: 0,
}
/** @param {Object | Number | String} values */
constructor(values = 0) {
super(values)
/** @type {Number} */
static {
this.cleanupAttributes(this.attributes)
}
/** @param {Object | Number | String} value */
constructor(value = 0) {
super(value)
this.value = Math.round(this.value)
}