UNPKG

typia

Version:

Superfast runtime validators with only one line

13 lines 766 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._randomFormatPassword = void 0; const _randomString_1 = require("./_randomString"); const _randomFormatPassword = (props) => (0, _randomString_1._randomString)((props === null || props === void 0 ? void 0 : props.minLength) === undefined && (props === null || props === void 0 ? void 0 : props.maxLength) === undefined ? { type: "string", minLength: 4, maxLength: 16 } : { type: "string", minLength: props === null || props === void 0 ? void 0 : props.minLength, maxLength: props === null || props === void 0 ? void 0 : props.maxLength, }); exports._randomFormatPassword = _randomFormatPassword; //# sourceMappingURL=_randomFormatPassword.js.map