refactor(font): split types into separate files for better maintainability
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
* and automatic refetching.
|
||||
*/
|
||||
|
||||
import { fetchFontshareFonts } from '$entities/Font/api/fontshare';
|
||||
import { normalizeFontshareFonts } from '$entities/Font/api/normalize';
|
||||
import type { UnifiedFont } from '$entities/Font/api/normalize';
|
||||
import { fetchFontshareFonts } from '$entities/Font/api/fontshare/fontshare';
|
||||
import { normalizeFontshareFonts } from '$entities/Font/api/normalize/normalize';
|
||||
import type { UnifiedFont } from '$entities/Font/model/types/normalize';
|
||||
import type { QueryFunction } from '@tanstack/svelte-query';
|
||||
import {
|
||||
createQuery,
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
* Uses reactive query args pattern for Svelte 5 compatibility.
|
||||
*/
|
||||
|
||||
import { fetchGoogleFonts } from '$entities/Font/api/google/googleFonts';
|
||||
import { normalizeGoogleFonts } from '$entities/Font/api/normalize/normalize';
|
||||
import type {
|
||||
FontCategory,
|
||||
FontSubset,
|
||||
} from '$entities/Font';
|
||||
import { fetchGoogleFonts } from '$entities/Font/api/googleFonts';
|
||||
import { normalizeGoogleFonts } from '$entities/Font/api/normalize';
|
||||
import type { UnifiedFont } from '$entities/Font/api/normalize';
|
||||
} from '$entities/Font/model/types';
|
||||
import type { UnifiedFont } from '$entities/Font/model/types/normalize';
|
||||
import type { QueryFunction } from '@tanstack/svelte-query';
|
||||
import {
|
||||
createQuery,
|
||||
|
||||
@@ -8,8 +8,8 @@ import type {
|
||||
FontCategory,
|
||||
FontProvider,
|
||||
FontSubset,
|
||||
} from '$entities/Font';
|
||||
import type { UnifiedFont } from '$entities/Font/api/normalize';
|
||||
} from '$entities/Font/model/types';
|
||||
import type { UnifiedFont } from '$entities/Font/model/types/normalize';
|
||||
|
||||
/**
|
||||
* Combined query parameters for fetching from any provider
|
||||
|
||||
Reference in New Issue
Block a user