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

@@ -2,7 +2,7 @@ import type {
FontshareFont,
GoogleFontItem,
UnifiedFont,
} from '$entities/Font';
} from '$entities/Font/model/types';
import {
describe,
expect,
@@ -136,9 +136,9 @@ describe('Font Normalization', () => {
});
it('maps variant weights correctly', () => {
const font = {
const font: GoogleFontItem = {
...mockGoogleFont,
variants: ['regular', '100', '400', '700', '900'],
variants: ['regular', '100', '400', '700', '900'] as any,
};
const result = normalizeGoogleFont(font);