Thanks to the Typescript magic, your custom Zod schema type should be automatically inferred.
source.ts
utils.getPages().data; // should be your own frontmatter
Infer the type of pages and meta files with build-in type helpers of Source API.
import type { InferMetaType, InferPageType } from 'fumadocs-core/source';export type Page = InferPageType<typeof utils>;export type Meta = InferMetaType<typeof utils>;