@statesync/vue / VueSnapshotApplierOptions
Type Alias: VueSnapshotApplierOptions<State, Data>
ts
type VueSnapshotApplierOptions<State, Data> =
| VueReactiveSnapshotApplierOptions<State, Data>
| VueRefSnapshotApplierOptions<State, Data>;Defined in: vue.ts:246
Union of all Vue snapshot applier option shapes.
Discriminated by the target field:
'reactive'(or omitted) -- VueReactiveSnapshotApplierOptions'ref'-- VueRefSnapshotApplierOptions
Type Parameters
| Type Parameter | Description |
|---|---|
State extends Record<string, unknown> | The shape of the Vue reactive object or ref value. Must be a plain object. |
Data | The snapshot payload type received from the sync engine. |
