UNPKG

zod-to-x

Version:

Multi language types generation from Zod schemas.

25 lines (24 loc) 978 B
import { IZodToXOpt } from "../../core"; export interface IZod2ProtoV3Opt extends IZodToXOpt { /** * Name of the protobuf file package. */ packageName?: string; /** * By default (false), structure/class property names are converted according to the target * language's naming conventions. If set to true, the original property names are preserved. */ keepKeys?: boolean; /** * If true, double values will be represented as integers in the generated protobuf file. * This could be useful when integer representation could be done with int32 or smaller because * output will be more compact. Default is false. */ encodeDoubleAsInt?: boolean; /** * ProtoV3 fields are optional by default, but this setting makes the "optional" keyword * explicit improving compatibility with ProtoV2. Default is false. */ useExplicitOptional?: boolean; } export declare const defaultOpts: IZod2ProtoV3Opt;