dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
7 lines (6 loc) • 321 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromZodOptional = void 0;
const fromZodSchema_js_1 = require("./fromZodSchema.js");
const fromZodOptional = (zodSchema) => (0, fromZodSchema_js_1.fromZodSchema)(zodSchema.unwrap()).optional();
exports.fromZodOptional = fromZodOptional;