refactor(font): split types into separate files for better maintainability

This commit is contained in:
Ilia Mashkov
2026-01-06 15:23:08 +03:00
parent db814f0b93
commit be14a62e83
16 changed files with 847 additions and 838 deletions

View File

@@ -12,10 +12,10 @@ import type {
FontProvider,
FontStyleUrls,
FontSubset,
FontshareFont,
GoogleFontItem,
UnifiedFont,
} from '../../model/types';
} from '$entities/Font/model/types';
import type { FontshareFont } from '$entities/Font/model/types/fontshare';
import type { GoogleFontItem } from '$entities/Font/model/types/google';
import type { UnifiedFont } from '$entities/Font/model/types/normalize';
/**
* Map Google Fonts category to unified FontCategory
@@ -272,3 +272,6 @@ export function normalizeFontshareFonts(
): UnifiedFont[] {
return apiFonts.map(normalizeFontshareFont);
}
// Re-export UnifiedFont for backward compatibility
export type { UnifiedFont } from '$entities/Font/model/types/normalize';