5acf3a4 e8b5344
1
2
3
4
5
6
import { type Writable } from "svelte/store"; export function partialSet<T extends Record<string, unknown>>(store: Writable<T>, partial: Partial<T>) { store.update(s => ({ ...s, ...partial })); }