propertyDefaults for observable class fields
Makes observable class field work with propertyDefaults
:
class MyType extends ObservableObject {
foo = 5;
static propertyDefaults = {
type: type.maybeConvert(String)
};
}
Makes observable class field work with propertyDefaults
:
class MyType extends ObservableObject {
foo = 5;
static propertyDefaults = {
type: type.maybeConvert(String)
};
}