Skip to content

covenix / GenerateClientOptions

Interface: GenerateClientOptions

Defined in: src/generator/contract-client.ts:14

Options for generateTypeScriptClient.

Properties

validate?

optional validate?: ClientValidation

Defined in: src/generator/contract-client.ts:23

Emit a validating client. 'zod' regenerates Zod schemas from the contract and validates/parses request inputs and response bodies at runtime (a mismatch throws CovenixClientValidationError); the output then imports zod (a peer dependency) and types z.date() responses as real Dates (revived on parse). false (default) is a tiny, types-only, dependency-free client. The union leaves room for other validator backends later.