0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Fixed types for custom fonts

This commit is contained in:
Fabien O'Carroll 2024-10-10 15:02:21 +01:00 committed by Aileen Booker
parent 08b3d872f7
commit 0b3b59fb1e

View file

@ -9,13 +9,13 @@ import {getImageUrl, useUploadImage} from '@tryghost/admin-x-framework/api/image
import {useFramework} from '@tryghost/admin-x-framework';
import {useGlobalData} from '../../../providers/GlobalDataProvider';
import {useHandleError} from '@tryghost/admin-x-framework/hooks';
import type {Font, HeadingFont} from '@tryghost/custom-fonts';
import type {BodyFont, HeadingFont} from '@tryghost/custom-fonts';
// TODO: create custom types for heading and body fonts in @tryghost/custom-fonts, so we can extend
// them separately
type BodyFontOption = {
value: Font | typeof DEFAULT_FONT,
label: Font | typeof DEFAULT_FONT
value: BodyFont | typeof DEFAULT_FONT,
label: BodyFont | typeof DEFAULT_FONT
};
type HeadingFontOption = {
value: HeadingFont | typeof DEFAULT_FONT,