Type alias: RawModelProp<T, R>
RawModelProp<
T,R>:object
Raw definition for a model's property (ID, attribute or relation).
Type parameters
• T = unknown
• R extends boolean = boolean
Type declaration
alias?
optionalalias:string
Alias of the property (might be used when (de)serializing).
default?
optionaldefault:T| () =>T
Default value for the property.
readOnly?
optionalreadOnly:R
Makes the property read-only.
sync?
optionalsync:boolean|ModelPropSync
Tells if the property should be synced with the data store.