zod-to-x
Version:
Multi language types generation from Zod schemas.
18 lines (17 loc) • 587 B
TypeScript
import { IZodToXOpt } from "../../core";
export interface IZod2GoOpt extends IZodToXOpt {
/**
* The Go package name for the generated file. Default: "models"
*/
packageName?: string;
/**
* By default (false), struct field names are exported (PascalCase) and JSON tags use the
* original property name. If set to true, original property names are preserved as-is.
*/
keepKeys?: boolean;
/**
* Whether to emit `json:"fieldName"` struct tags. Default: true
*/
useJsonTags?: boolean;
}
export declare const defaultOpts: IZod2GoOpt;