Import custom types from @cms0/cms0/custom-types.
Available custom types
FileImageVideoRichTextLocalizedStringLocalizedRichTextSeo
Common usage
import {
Image,
LocalizedString,
LocalizedRichText,
Seo,
} from "@cms0/cms0/custom-types";
type RootSchema = {
HomePage: {
title: LocalizedString;
heroImage: Image;
body: LocalizedRichText;
seo?: Seo;
};
};Selection guide
- Use
ImageandVideofor media metadata and rendering constraints. - Use
RichTextwhen editors need formatted content. - Use localized types when content varies per locale.
- Use
Seofor metadata that maps cleanly to page-level SEO output.