chore(appliedFontsStore): move the FontLoadRequestConfig type and other types from appliedFontsStore into types directory
This commit is contained in:
1 parent
5249d88df7
commit
b602b5022b
6 files changed
+44
-37
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user