refactor: replace explicit any types for Obsidian plugin review compliance
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>
This commit is contained in:
14 files changed
+22
-22
No files matched your search
@@ -83,7 +83,7 @@ export class BinaryLocator {
|
||||
// Strategy 2: Assuming we're running from vault root
|
||||
path.join(configDir, 'plugins', pluginDirName),
|
||||
// Strategy 3: From vault base path if plugin is available
|
||||
...(plugin ? [path.join((plugin.app.vault.adapter as any).basePath, plugin.manifest.dir!)] : [])
|
||||
...(plugin ? [path.join((plugin.app.vault.adapter as { basePath: string }).basePath, plugin.manifest.dir!)] : [])
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user