UNPKG

dynamodb-toolbox

Version:

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

4 lines (3 loc) 215 B
import { anyOf } from '../../../schema/anyOf/index.js'; import { fromZodSchema } from './fromZodSchema.js'; export const fromZodUnion = (zodUnion) => anyOf(...zodUnion.options.map(option => fromZodSchema(option)));