Replace all @typescript-eslint/no-explicit-any warnings with proper type assertions
and union types to meet Obsidian plugin review requirements.
Changes:
- Replace (adapter as any).basePath with (adapter as { basePath: string }).basePath
- Change template variable types from Record<string, any> to Record<string, string | number | boolean>
- Change frontmatter types from Record<string, any> to Record<string, unknown>
- Fix error handling in PdfCliExecutor with proper type assertion
- Update method signatures in TypstVariableMapper for type safety
This eliminates all 42 @typescript-eslint/no-explicit-any warnings while
maintaining full functionality and improving type safety.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Replace all 'any' types with proper TypeScript types throughout codebase
- Fix processedResult parameters to use PreprocessingResult interface
- Update UI modal types: app parameter (App), pluginDefaults (obsidianTypstPDFExportSettings)
- Fix dropdown components to use DropdownComponent from Obsidian API
- Replace plugin 'any' types with obsidianTypstPDFExport throughout converters
- Fix margins parameter to use proper interface structure
- Update fs parameter to use proper Node.js fs module type
- Improve error handling with proper unknown type and type guards
- Remove unused PdfEmbedProcessor and clean up imports
Achieves complete type safety with zero remaining 'any' types across src/ directory.
Provides better IDE support, compile-time error detection, and maintainability.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Remove extractTags() and calculateWordCount() methods (dead code)
- Keep only extractTitle() method in MetadataExtractor
- Remove includeMetadata option and related infrastructure
- Update PreprocessingResult interfaces across all processors
- Remove wordCount from metadata schema
- Tags still populated from frontmatter (FrontmatterProcessor)
- Build verification passes without errors
Analysis showed these methods extracted data never consumed by Typst
templates or PDF generation pipeline.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Extract all export orchestration methods from main.ts into a focused
ExportOrchestrator module to improve maintainability and reduce complexity.
- Create ExportOrchestrator.ts with export workflow coordination
- Extract exportFile(), exportFiles(), exportFileWithConfig() methods
- Extract processBatchExport(), cancelExport(), handleFolderExport() methods
- Delegate export operations from main.ts to ExportOrchestrator
- Make processing methods public for ExportOrchestrator access
- Reduce main.ts by ~205 lines while maintaining all functionality
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>