Spaces:
Paused
Paused
Download web/src/lib/storage/storage.ts from Lordgrim7/cobalt-api: direct link, hf CLI and curl.
- Browser
- Download file 411 Bytes
-
https://huggingface.co/spaces/Lordgrim7/cobalt-api/resolve/main/web/src/lib/storage/storage.ts
- Command line
-
hf download hf://spaces/Lordgrim7/cobalt-api/web/src/lib/storage/storage.ts
-
curl -L -o storage.ts https://huggingface.co/spaces/Lordgrim7/cobalt-api/resolve/main/web/src/lib/storage/storage.ts
411 Bytes
| export abstract class AbstractStorage { | |
| static init(_expected_size: number): Promise<AbstractStorage> { | |
| throw "init() call on abstract implementation"; | |
| } | |
| static async isAvailable(): Promise<boolean> { | |
| return false; | |
| } | |
| abstract res(): Promise<File>; | |
| abstract write(data: Uint8Array | Int8Array, offset: number): Promise<number>; | |
| abstract destroy(): Promise<void>; | |
| }; | |