Skip to content

Home > fff-flavored-frontmatter > FFFMedia

FFFMedia type

Media Variables

Signature:

typescript
type FFFMedia<T extends (boolean | undefined) = undefined> = {
    alt?: T extends true ? never : string;
    audio?: FFFOptionalType<T, string, FFFAudio>;
    image?: FFFOptionalType<T, string, FFFImage>;
    images?: FFFOptionalType<T, string[], FFFImage[]>;
    video?: FFFOptionalType<T, string, FFFVideo>;
};

References: FFFOptionalType, FFFAudio, FFFImage, FFFVideo