Spaces:
Runtime error
Runtime error
Download src/lib/utils/store.ts from FallnAI/LLM-Inference: direct link, hf CLI and curl.
- Browser
- Download file 198 Bytes
-
https://huggingface.co/spaces/FallnAI/LLM-Inference/resolve/main/src/lib/utils/store.ts
- Command line
-
hf download hf://spaces/FallnAI/LLM-Inference/src/lib/utils/store.ts
-
curl -L -o store.ts https://huggingface.co/spaces/FallnAI/LLM-Inference/resolve/main/src/lib/utils/store.ts
198 Bytes
| 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 })); | |
| } | |