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/2f8477eb7ebef3fd3a2489d8a4b5cf5f76be2f3d/src/lib/utils/store.ts
- Command line
-
hf download hf://spaces/FallnAI/LLM-Inference@2f8477eb7ebef3fd3a2489d8a4b5cf5f76be2f3d/src/lib/utils/store.ts
-
curl -L -o store.ts https://huggingface.co/spaces/FallnAI/LLM-Inference/resolve/2f8477eb7ebef3fd3a2489d8a4b5cf5f76be2f3d/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 })); | |
| } | |