feat(normalize): use type FontVariant instead of string

This commit is contained in:
Ilia Mashkov
2026-02-05 11:39:20 +03:00
parent 40346aa9aa
commit 9a794b626b

View File

@@ -8,17 +8,18 @@ import type {
FontCategory,
FontProvider,
FontSubset,
FontVariant,
} from './common';
/**
* Font variant types (standardized)
*/
export type UnifiedFontVariant = string;
export type UnifiedFontVariant = FontVariant;
/**
* Font style URLs
*/
export interface FontStyleUrls {
export interface LegacyFontStyleUrls {
/** Regular weight URL */
regular?: string;
/** Italic URL */
@@ -29,6 +30,10 @@ export interface FontStyleUrls {
boldItalic?: string;
}
export interface FontStyleUrls extends LegacyFontStyleUrls {
variants?: Partial<Record<UnifiedFontVariant, string>>;
}
/**
* Font metadata
*/