Skip to main content

Type Alias: SchemaLike

SchemaLike = Record<string, unknown> | { toJSONSchema: unknown; }

A payload schema: a JSON Schema object, or a schema library value with a toJSONSchema() method. Anything else (a zod schema without one, for example) types the code but leaves the interface without that schema.