Fix import path from 'metadata-cache-adapter' to 'metadata-adapter' to match the actual filename.
17 lines
554 B
TypeScript
17 lines
554 B
TypeScript
import { App } from 'obsidian';
|
|
import { NoteTools } from './note-tools';
|
|
import { VaultAdapter } from '../adapters/vault-adapter';
|
|
import { FileManagerAdapter } from '../adapters/file-manager-adapter';
|
|
import { MetadataCacheAdapter } from '../adapters/metadata-adapter';
|
|
|
|
/**
|
|
* Factory function to create NoteTools with concrete adapters
|
|
*/
|
|
export function createNoteTools(app: App): NoteTools {
|
|
return new NoteTools(
|
|
new VaultAdapter(app.vault),
|
|
new FileManagerAdapter(app.fileManager),
|
|
new MetadataCacheAdapter(app.metadataCache),
|
|
app
|
|
);
|
|
} |