From 180b0e30a822c6b90a1ddcf662af1aa08207bce0 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 11 Sep 2026 22:43:02 +0100 Subject: [PATCH 1/2] fix: improve jsdoc for fonts --- packages/astro/src/assets/fonts/types.ts | 28 ++++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/astro/src/assets/fonts/types.ts b/packages/astro/src/assets/fonts/types.ts index b9241ca34a4c..7b5ba6649646 100644 --- a/packages/astro/src/assets/fonts/types.ts +++ b/packages/astro/src/assets/fonts/types.ts @@ -59,9 +59,9 @@ export interface FontProvider< export interface FamilyProperties { /** - * @default `"swap"` - * * Defines [how a font displays](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display) based on when it is downloaded and ready for use. + * + * @default "swap" */ display?: Display | undefined; /** @@ -132,8 +132,6 @@ export type FontFamily = Fami */ provider: TFontProvider; /** - * @default `[400]` - * * An array of [font weights](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight). If no value is specified in your configuration, only weight `400` is * included by default to prevent unnecessary downloads. You will need to include this property to access any other font weights. * @@ -142,29 +140,29 @@ export type FontFamily = Fami * ```js * weight: "100 900" * ``` + * + * @default [400] */ weights?: [Weight, ...Array] | undefined; /** - * @default `["normal", "italic"]` - * * An array of [font styles](https://developer.mozilla.org/en-US/docs/Web/CSS/font-style). + * + * @default ["normal", "italic"] */ styles?: [Style, ...Array