@statesync/svelte / SvelteSnapshotApplierOptions
Type Alias: SvelteSnapshotApplierOptions<State, Data>
ts
type SvelteSnapshotApplierOptions<State, Data> =
| SvelteStoreSnapshotApplierOptions<State, Data>
| SvelteStateSnapshotApplierOptions<State, Data>;Defined in: svelte.ts:252
Union of all Svelte snapshot applier option shapes.
Discriminated by the target field:
'store'(or omitted) -- SvelteStoreSnapshotApplierOptions'state'-- SvelteStateSnapshotApplierOptions
Type Parameters
| Type Parameter | Description |
|---|---|
State extends Record<string, unknown> | The shape of the Svelte store or $state proxy. Must be a plain object. |
Data | The snapshot payload type received from the sync engine. |
