@matatbread/typia
Version:
Superfast runtime validators with only one line
9 lines • 764 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.json_schema_description = void 0;
const json_schema_description = (props) => {
var _a, _b, _c, _d, _e, _f, _g;
return (_g = (_f = (_e = (_d = (_c = (_b = (_a = props.jsDocTags) === null || _a === void 0 ? void 0 : _a.find((tag) => tag.name === "description")) === null || _b === void 0 ? void 0 : _b.text) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.text) === null || _e === void 0 ? void 0 : _e.split("\r\n").join("\n")) !== null && _f !== void 0 ? _f : props.description) !== null && _g !== void 0 ? _g : undefined;
};
exports.json_schema_description = json_schema_description;
//# sourceMappingURL=json_schema_description.js.map