fix: context typing
This commit is contained in:
parent
fc033fa687
commit
4a14a541e1
|
@ -37,15 +37,6 @@ export default (latus) => class Behaved extends decorate(Trait) {
|
||||||
} = this.constructor.defaultState());
|
} = this.constructor.defaultState());
|
||||||
}
|
}
|
||||||
|
|
||||||
static behaviorTypes() {
|
|
||||||
return {
|
|
||||||
context: {
|
|
||||||
type: 'context',
|
|
||||||
label: 'Context',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
get context() {
|
get context() {
|
||||||
return this.#context;
|
return this.#context;
|
||||||
}
|
}
|
||||||
|
@ -77,6 +68,10 @@ export default (latus) => class Behaved extends decorate(Trait) {
|
||||||
|
|
||||||
static children(entity) {
|
static children(entity) {
|
||||||
return {
|
return {
|
||||||
|
context: {
|
||||||
|
type: 'context',
|
||||||
|
label: 'Context',
|
||||||
|
},
|
||||||
isBehaving: {
|
isBehaving: {
|
||||||
type: 'bool',
|
type: 'bool',
|
||||||
label: 'Is behaving',
|
label: 'Is behaving',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user