Skip to content

covenix / ContractOptions

Interface: ContractOptions

Defined in: src/contract.ts:268

Options for contract generation.

Properties

schemas?

optional schemas?: ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>[]

Defined in: src/contract.ts:275

Route-less named schemas to add to schemas, beyond those referenced by routes — e.g. WebSocket/event message shapes or shared DTOs not tied to any HTTP route. Each must be named via .meta({ id }). Mirrors the schemas option of swagger().