x-to-zod / Options
Type Alias: Options
ts
type Options = {
depth?: number;
disableRefs?: boolean;
module?: "cjs" | "esm" | "none";
name?: string;
noImport?: boolean;
postProcessors?: (
| PostProcessor
| PostProcessorConfig)[];
preferUnions?: boolean;
transformers?: SchemaTransformer[];
type?: boolean | string;
withJsdocs?: boolean;
withoutDefaults?: boolean;
withoutDescribes?: boolean;
zodVersion?: "v3" | "v4";
};Defined in: src/context.ts:11
Properties
depth?
ts
optional depth?: number;Defined in: src/context.ts:17
disableRefs?
ts
optional disableRefs?: boolean;Defined in: src/context.ts:21
module?
ts
optional module?: "cjs" | "esm" | "none";Defined in: src/context.ts:13
name?
ts
optional name?: string;Defined in: src/context.ts:12
noImport?
ts
optional noImport?: boolean;Defined in: src/context.ts:19
postProcessors?
ts
optional postProcessors?: (
| PostProcessor
| PostProcessorConfig)[];Defined in: src/context.ts:27
Post-processors to transform builders after parsing
preferUnions?
ts
optional preferUnions?: boolean;Defined in: src/context.ts:20
transformers?
ts
optional transformers?: SchemaTransformer[];Defined in: src/context.ts:25
Schema transformers applied before parsing
type?
ts
optional type?: boolean | string;Defined in: src/context.ts:18
withJsdocs?
ts
optional withJsdocs?: boolean;Defined in: src/context.ts:16
withoutDefaults?
ts
optional withoutDefaults?: boolean;Defined in: src/context.ts:14
withoutDescribes?
ts
optional withoutDescribes?: boolean;Defined in: src/context.ts:15
zodVersion?
ts
optional zodVersion?: "v3" | "v4";Defined in: src/context.ts:23
Zod version to target for generated code (default: 'v4')