master
cyhhao 2 years ago
parent e829f38935
commit e699611000

@ -19,7 +19,7 @@ export class ETHStorage implements Storage {
throw new Error("Method not implemented."); throw new Error("Method not implemented.");
} }
async delete(path: string): Promise<void> { async delete(path: string): Promise<Status> {
throw new Error("Method not implemented."); throw new Error("Method not implemented.");
} }
async download(path: string): Promise<[Status, Buffer]> { async download(path: string): Promise<[Status, Buffer]> {

@ -16,7 +16,7 @@ export interface Storage {
download(path: string): Promise<[Status, Buffer]> download(path: string): Promise<[Status, Buffer]>
upload(path: string, file: Buffer): Promise<Status> upload(path: string, file: Buffer): Promise<Status>
delete(path: string): Promise<void> delete(path: string): Promise<Status>
listRefs(): Promise<Ref[]> listRefs(): Promise<Ref[]>
addRefs(refs: Ref[]): Promise<Status> addRefs(refs: Ref[]): Promise<Status>
delRefs(refs: Ref[]): Promise<Status> delRefs(refs: Ref[]): Promise<Status>

Loading…
Cancel
Save