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

@@ -0,0 +1,19 @@
import IEntity from "../../js/entity/IEntity"
export default class SimpleEntity extends IEntity {
static attributes = {
someNumber: 567,
someString: "alpha",
someString2: "beta",
someBoolean: true,
someBoolean2: false,
someObjectString: new String("gamma"),
someArray: [400, 500, 600, 700, 800],
someSet: new Set([10, 20, 30, 40, 50, 60, 70]),
}
static {
this.cleanupAttributes(this.attributes)
}
}