StandardSchema
A schema in the Standard Schema form, which Zod, Valibot, ArkType and others
implement: what a collection checks each entry's data with. Only its ~standard property is read.
import type { StandardResult } from "#codebase/tcmts/content"; export interface StandardSchema<Output = unknown> { readonly "~standard": { readonly version: 1; readonly vendor: string; readonly validate: (value: unknown) => StandardResult<Output> | Promise<StandardResult<Output>>; readonly types?: { readonly input: unknown; readonly output: Output } | undefined; }; }