Skip to main content

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?

optional alias: string

Alias of the property (might be used when (de)serializing).

default?

optional default: T | () => T

Default value for the property.

readOnly?

optional readOnly: R

Makes the property read-only.

sync?

optional sync: boolean | ModelPropSync

Tells if the property should be synced with the data store.

Source

packages/core/src/model/types.ts:84