Optional_Optional_Optional_Adds a setter to the property. The setter will be named set${CapitalizedPropName}
and will be available in the model instance.
Adds a setter with a transform to the property. The setter will be named set${CapitalizedPropName}
and will be available in the model instance.
Sets snapshot processors for this property.
fromSnapshot runs before assigning snapshot data into the model prop.
toSnapshot runs when exporting model data back to snapshot form.
Sets a transform for the property instance value.
Transformed value type.
Transform to be used.
Prefer using tProp(types.codec(...)) or one of the built-in codec types
(e.g. types.dateAsTimestamp, types.bigint, types.mapFromObject(...)) instead.
Wrap with types.skipCheck(...) if you don't need runtime validation.
Use .withTransform(...) only for one-off custom transforms without a codec equivalent.
A model property.