registerSync
registerSync<
T>(__namedParameters):void
Register a model for local-first sync. Called automatically by modelRouter when the
sync option is provided. Validates the schema contract at startup and throws with
an actionable message when it is not met:
- soft delete (
isDeletedPlugin) is required so deletes remain queryable tombstones; syncPluginis required so every write stamps a per-stream_syncSeq;- owner/tenant scope fields must exist on the schema.
Type Parameters
T
T
Parameters
__namedParameters
config
model
Model<T>
options
routePath
string
Returns
void