lib/storage: always return files

This commit is contained in:
jj 2025-05-04 18:59:41 +00:00
parent 9a9b9a6dfc
commit f655432376
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View File

@ -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) {

View File

@ -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>;
}; };