Skip to content

@statesync/svelte


@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:

Type Parameters

Type ParameterDescription
State extends Record<string, unknown>The shape of the Svelte store or $state proxy. Must be a plain object.
DataThe snapshot payload type received from the sync engine.

Released under the MIT License.