Files
ueblueprint/cypress/fixtures/SimpleEntity.js
barsdeveloper bb24486303 Grammar refactoring
* Grammar refactoring WIP

* ISerializer.grammar

* Fixing various bugs in the grammar

* Small touch that improoves performance

* Fix unknown values grammar

* Various fixes

* Serialization refactoring to drop suboject logic

* Details fixed

* Entity attributes initialization refactoring

* JSDoc error fixed

* Rename value key to default

* Remove useless default

* Revert string keys
2023-04-01 19:55:16 +02:00

36 lines
762 B
JavaScript

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