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

@@ -10,7 +10,7 @@
import type {
FontItem,
GoogleFontsApiModel,
} from '$entities/Font';
} from '$entities/Font/model/types/google';
import { api } from '$shared/api/api';
import { buildQueryString } from '$shared/utils';
import type { QueryParams } from '$shared/utils';
@@ -47,13 +47,13 @@ export interface GoogleFontsParams extends QueryParams {
/**
* Google Fonts API response wrapper
* Re-exported from model/types for backward compatibility
* Re-exported from model/types/google for backward compatibility
*/
export type GoogleFontsResponse = GoogleFontsApiModel;
/**
* Simplified font item from Google Fonts API
* Re-exported from model/types for backward compatibility
* Re-exported from model/types/google for backward compatibility
*/
export type GoogleFontItem = FontItem;