diff --git a/packages/tm-core/src/storage/api-storage.ts b/packages/tm-core/src/storage/api-storage.ts index af4bc189..51784c9e 100644 --- a/packages/tm-core/src/storage/api-storage.ts +++ b/packages/tm-core/src/storage/api-storage.ts @@ -112,6 +112,13 @@ export class ApiStorage implements IStorage { } } + /** + * Get the storage type + */ + getType(): 'api' { + return 'api'; + } + /** * Load tags into cache * In our API-based system, "tags" represent briefs diff --git a/packages/tm-core/src/storage/file-storage/file-storage.ts b/packages/tm-core/src/storage/file-storage/file-storage.ts index d3fe29fd..b44039b6 100644 --- a/packages/tm-core/src/storage/file-storage/file-storage.ts +++ b/packages/tm-core/src/storage/file-storage/file-storage.ts @@ -44,6 +44,13 @@ export class FileStorage implements IStorage { await this.fileOps.cleanup(); } + /** + * Get the storage type + */ + getType(): 'file' { + return 'file'; + } + /** * Get statistics about the storage */