agsamantha/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js
2024-10-02 15:15:21 -05:00

11 lines
369 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseDefaultDef = void 0;
const parseDef_js_1 = require("../parseDef.js");
function parseDefaultDef(_def, refs) {
return {
...(0, parseDef_js_1.parseDef)(_def.innerType._def, refs),
default: _def.defaultValue(),
};
}
exports.parseDefaultDef = parseDefaultDef;