Inline attributes semantics and tests

This commit is contained in:
barsdeveloper
2023-04-09 10:41:50 +02:00
parent 0a40f0b33c
commit 53d79a16f5
22 changed files with 508 additions and 382 deletions

View File

@@ -0,0 +1,19 @@
import IEntity from "../../js/entity/IEntity.js"
export default class Entity1 extends IEntity {
static attributes = {
a: {
type: Number,
},
b: {
type: Number,
},
}
constructor(values = {}) {
values.a ??= 8
values.b ??= 9
super(values)
}
}