UNPKG

dynamodb-toolbox

Version:

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

4 lines (3 loc) 209 B
import { tuple } from '../../../schema/tuple/index.js'; import { fromZodSchema } from './fromZodSchema.js'; export const fromZodTuple = (zodTuple) => tuple(...zodTuple.items.map(item => fromZodSchema(item)));