UNPKG

typia

Version:

Superfast runtime validators with only one line

1 lines 786 B
{"version":3,"file":"_randomFormatPassword.mjs","names":[],"sources":["../../src/internal/_randomFormatPassword.ts"],"sourcesContent":["import { _randomString } from \"./_randomString\";\nimport { _ILengthProps } from \"./_randomStringLength\";\n\nexport const _randomFormatPassword = (props?: _ILengthProps): string =>\n _randomString(\n props?.minLength === undefined && props?.maxLength === undefined\n ? { type: \"string\", minLength: 4, maxLength: 16 }\n : {\n type: \"string\",\n minLength: props?.minLength,\n maxLength: props?.maxLength,\n },\n );\n"],"mappings":";;AAGA,MAAa,yBAAyB,UACpC,cACE,OAAO,cAAc,KAAA,KAAa,OAAO,cAAc,KAAA,IACnD;CAAE,MAAM;CAAU,WAAW;CAAG,WAAW;AAAG,IAC9C;CACE,MAAM;CACN,WAAW,OAAO;CAClB,WAAW,OAAO;AACpB,CACN"}