From 9a794b626b881614107a5ab50a89f47fb2cfba78 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Thu, 5 Feb 2026 11:39:20 +0300 Subject: [PATCH] feat(normalize): use type FontVariant instead of string --- src/entities/Font/model/types/normalize.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/entities/Font/model/types/normalize.ts b/src/entities/Font/model/types/normalize.ts index 91f58eb..954b8ae 100644 --- a/src/entities/Font/model/types/normalize.ts +++ b/src/entities/Font/model/types/normalize.ts @@ -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>; +} + /** * Font metadata */