chore(appliedFontsStore): move the FontLoadRequestConfig type and other types from appliedFontsStore into types directory

This commit is contained in:
Ilia Mashkov
2026-04-03 12:25:38 +03:00
parent 5249d88df7
commit b602b5022b
6 changed files with 44 additions and 37 deletions

View File

@@ -15,7 +15,7 @@ import type {
import { fade } from 'svelte/transition';
import { getFontUrl } from '../../lib';
import {
type FontConfigRequest,
type FontLoadRequestConfig,
type UnifiedFont,
appliedFontsManager,
unifiedFontStore,
@@ -54,7 +54,7 @@ const isLoading = $derived(
);
function handleInternalVisibleChange(visibleItems: UnifiedFont[]) {
const configs: FontConfigRequest[] = [];
const configs: FontLoadRequestConfig[] = [];
visibleItems.forEach(item => {
const url = getFontUrl(item, weight);