UNPKG

zod-to-x

Version:

Multi language types generation from Zod schemas.

29 lines (28 loc) 944 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.USING = void 0; exports.getLibs = getLibs; /** * @description C++ standard library imports * @param useBoost Whether to use Boost libraries (C++11) or standard C++ libraries (>=C++17) * @returns */ function getLibs(useBoost) { return { // Shared imports exceptions: "#include <stdexcept>", integers: "#include <cstdint>", map: "#include <unordered_map>", nlohmann: "#include <nlohmann/json.hpp>", set: "#include <set>", string: "#include <string>", tuple: "#include <tuple>", vector: "#include <vector>", // Version-specific imports optional: useBoost ? "#include <boost/optional.hpp>" : "#include <optional>", variant: useBoost ? "#include <boost/variant.hpp>" : "#include <variant>", }; } exports.USING = { nlohmann: "using nlohmann::json;", };