IndexxedDb refactored

This commit is contained in:
Reece
2025-06-04 19:04:56 +01:00
parent a3c4f1a305
commit 16f150a203
17 changed files with 1856 additions and 218 deletions
+19
View File
@@ -0,0 +1,19 @@
/**
* Enhanced file types for IndexedDB storage
*/
export interface FileWithUrl extends File {
id?: string;
url?: string;
thumbnail?: string;
storedInIndexedDB?: boolean;
}
export interface StorageConfig {
useIndexedDB: boolean;
// Simplified - no thresholds needed, IndexedDB for everything
}
export const defaultStorageConfig: StorageConfig = {
useIndexedDB: true,
};