UNPKG

dynamodb-toolbox

Version:

Lightweight and type-safe query builder for DynamoDB and TypeScript.

8 lines (7 loc) 399 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromZodTuple = void 0; const index_js_1 = require("../../../schema/tuple/index.js"); const fromZodSchema_js_1 = require("./fromZodSchema.js"); const fromZodTuple = (zodTuple) => (0, index_js_1.tuple)(...zodTuple.items.map(item => (0, fromZodSchema_js_1.fromZodSchema)(item))); exports.fromZodTuple = fromZodTuple;