fix: resolve all TypeScript build errors and improve type safety
Comprehensive fix for 26+ TypeScript compilation errors to enable successful builds: - Update tsconfig.json: Add ES2015/ES2017 libs for iterator support - Add missing type exports: Create central export location in CSSExtractor.ts - Fix interface definitions: Add optimizeForPrint to MappingOptions - Fix access modifiers: Make mapCSSProperty public in CSSToTypstMapper - Add missing methods: getEnhancedThemeProfile and extractThemeStyles to PopularThemeSupport - Fix null/undefined type issues: Update return types for proper TypeScript compliance - Fix NodeList iteration: Convert to Array.from() for ES6 iterator compatibility - Fix template validator: Resolve condition logic and index signature errors All TypeScript compilation errors are now resolved while maintaining code functionality. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
11 files changed
+349
-60
No files matched your search
@@ -82,12 +82,12 @@ export class HybridExportMode {
|
||||
|
||||
// Step 2: Detect and extract theme-specific styles
|
||||
if (options.preserveThemeColors !== false) {
|
||||
result.themeInfo = await this.themeManager.detectCurrentTheme();
|
||||
result.themeInfo = await this.themeManager.detectCurrentTheme() || undefined;
|
||||
|
||||
if (result.themeInfo) {
|
||||
const enhancedTheme = await this.themeSupport.getEnhancedThemeProfile(result.themeInfo.theme.name);
|
||||
if (enhancedTheme) {
|
||||
const themeStyles = await this.themeSupport.extractThemeStyles(enhancedTheme);
|
||||
const themeStyles = await this.themeSupport.extractThemeStyles(result.themeInfo.theme.name);
|
||||
result.extractedStyles.push(...themeStyles);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user