fix(types): resolve import path and type issues after consolidation

- Added GoogleFontItem type alias for backward compatibility
- Updated normalize.ts to properly type Record<string, string> values
- Fixed import paths in Font index.ts (added subdirectory paths)
- Removed unused Readable import from store
- Removed type exports from normalize and API index files
- Updated stores index.ts to import types from parent types.ts
- All tests passing (129 tests)

All imports now use centralized types from model/types.ts:
- API clients re-export types for backward compatibility
- Normalize module imports types and exports functions
- Store module imports types and exports factory
- Main index.ts exports all types from model/types.ts
This commit is contained in:
Ilia Mashkov
2026-01-06 15:11:16 +03:00
parent 9f8b840e7a
commit db814f0b93
6 changed files with 82 additions and 24 deletions

View File

@@ -2,20 +2,20 @@ export {
fetchAllFontshareFonts,
fetchFontshareFontBySlug,
fetchFontshareFonts,
} from './api/fontshare';
} from './api/fontshare/fontshare';
export type {
FontshareParams,
FontshareResponse,
} from './api/fontshare';
} from './api/fontshare/fontshare';
export {
fetchGoogleFontFamily,
fetchGoogleFonts,
} from './api/googleFonts';
} from './api/google/googleFonts';
export type {
GoogleFontItem,
GoogleFontsParams,
GoogleFontsResponse,
} from './api/googleFonts';
} from './api/google/googleFonts';
export {
normalizeFontshareFont,
normalizeFontshareFonts,