Spaces:
Paused

File size: 411 Bytes
f942fd0
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>;
};