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

@@ -1,14 +1,20 @@
import IEntity from "./IEntity"
import ObjectReferenceEntity from "./ObjectReferenceEntity"
import TypeInitialization from "./TypeInitialization"
export default class FunctionReferenceEntity extends IEntity {
static attributes = {
MemberParent: new TypeInitialization(ObjectReferenceEntity, false),
MemberParent: {
type: ObjectReferenceEntity,
showDefault: false
},
MemberName: "",
}
static {
this.cleanupAttributes(this.attributes)
}
constructor(values) {
super(values)
/** @type {ObjectReferenceEntity} */ this.MemberParent