lib/storage: always return files
This commit is contained in:
@@ -48,7 +48,7 @@ export class MemoryStorage extends AbstractStorage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Blob(outputView);
|
return new File(outputView, crypto.randomUUID());
|
||||||
}
|
}
|
||||||
|
|
||||||
#expand(size: number) {
|
#expand(size: number) {
|
||||||
|
|||||||
@@ -7,8 +7,7 @@ export abstract class AbstractStorage {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract res(): Promise<Blob>;
|
abstract res(): Promise<File>;
|
||||||
abstract write(data: Uint8Array | Int8Array, offset: number): Promise<number>;
|
abstract write(data: Uint8Array | Int8Array, offset: number): Promise<number>;
|
||||||
abstract destroy(): Promise<void>;
|
abstract destroy(): Promise<void>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user