Download packages/storage-fabric/src/index.ts from AnthropicallyHuggingFaces/ProjectOS: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/packages/storage-fabric/src/index.ts
- Command line
-
hf download hf://spaces/AnthropicallyHuggingFaces/ProjectOS/packages/storage-fabric/src/index.ts
-
curl -L -o index.ts https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/packages/storage-fabric/src/index.ts
443 Bytes
| export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue }; | |
| export interface StateRepository<T> { | |
| read(key: string): Promise<T | null>; | |
| write(key: string, value: T): Promise<void>; | |
| } | |
| export function isArrayState(value: unknown): value is unknown[] { | |
| return Array.isArray(value); | |
| } | |
| export * as sqliteSchema from './drizzle/sqlite.js'; | |
| export * as postgresSchema from './drizzle/postgres.js'; | |