agsamantha/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js

12 lines
398 B
JavaScript
Raw Normal View History

2024-10-02 20:15:21 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseDefaultDef = void 0;
const parseDef_1 = require("../parseDef.js");
function parseDefaultDef(_def, refs) {
return {
...(0, parseDef_1.parseDef)(_def.innerType._def, refs),
default: _def.defaultValue(),
};
}
exports.parseDefaultDef = parseDefaultDef;
//# sourceMappingURL=default.js.map