zod-to-x
Version:
Multi language types generation from Zod schemas.
11 lines (10 loc) • 684 B
TypeScript
/**
* @description Generates a reusable C++ utility for handling optional fields in JSON serialization
* and deserialization using the nlohmann::json library and boost::optional.
* @param indent - Specifies the level of indentation for the generated code.
* @param includeNulls - Specifies whether to include null values in the JSON serialization.
* @param useBoost - Specifies whether to use boost::optional instead of std::optional.
* @param namespace - Specifies the namespace to use for the generated code.
* @returns
*/
export declare function getNlohmannOptionalHelper(indent: number, includeNulls: boolean, useBoost: boolean, namespace: string): string[];