dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
8 lines (7 loc) • 405 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromZodUnion = void 0;
const index_js_1 = require("../../../schema/anyOf/index.js");
const fromZodSchema_js_1 = require("./fromZodSchema.js");
const fromZodUnion = (zodUnion) => (0, index_js_1.anyOf)(...zodUnion.options.map(option => (0, fromZodSchema_js_1.fromZodSchema)(option)));
exports.fromZodUnion = fromZodUnion;