File size: 457 Bytes
f56a29b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import type { StorageProvider, StorageType } from '../types';
/** No-op provider used when no external storage is configured. */
export class NoopStorageProvider implements StorageProvider {
async upload(): Promise<string> {
return '';
}
async exists(): Promise<boolean> {
return false;
}
getUrl(): string {
return '';
}
async batchExists(_hashes: string[], _type: StorageType): Promise<Set<string>> {
return new Set();
}
}
|