{"version":3,"sources":["../src/rule/length.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAC,cAAc,EAAqB,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAC,WAAW,EAAkB,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAmB,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,WAAW,EAAkB,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAmB,MAAM,mBAAmB,CAAC;AAEjE,OAAO,EAAC,IAAI,EAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC;AAEtC;;GAEG;AACH,qBAAa,UAAU;IACtB,SAAgB,OAAO,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACpD,SAAgB,WAAW,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IACrD,SAAgB,oBAAoB,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAC/D,SAAgB,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAClD,SAAgB,iBAAiB,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;gBAEhD,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ;CAOtC","file":"length.d.ts","sourcesContent":["/**\n *\tMIT License\n *\n *\tCopyright (c) 2019 - 2021 Toreda, Inc.\n *\n *\tPermission is hereby granted, free of charge, to any person obtaining a copy\n *\tof this software and associated documentation files (the \"Software\"), to deal\n *\tin the Software without restriction, including without limitation the rights\n *\tto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n *\tcopies of the Software, and to permit persons to whom the Software is\n *\tfurnished to do so, subject to the following conditions:\n\n * \tThe above copyright notice and this permission notice shall be included in all\n * \tcopies or substantial portions of the Software.\n *\n * \tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n *\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n *\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * \tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n *\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n *\tOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * \tSOFTWARE.\n *\n */\n\nimport {HasLengthEqual, hasLengthEqualMake} from '../has/length/equal';\nimport {HasLengthGT, hasLengthGTMake} from '../has/length/gt';\nimport {HasLengthGTE, hasLengthGTEMake} from '../has/length/gte';\nimport {HasLengthLT, hasLengthLTMake} from '../has/length/lt';\nimport {HasLengthLTE, hasLengthLTEMake} from '../has/length/lte';\n\nimport {Rule} from '../rule';\nimport {RuleMods} from '../rule/mods';\n\n/**\n * @category Rules\n */\nexport class RuleLength {\n\tpublic readonly equalTo: HasLengthEqual<RuleLength>;\n\tpublic readonly greaterThan: HasLengthGT<RuleLength>;\n\tpublic readonly greaterThanOrEqualTo: HasLengthGTE<RuleLength>;\n\tpublic readonly lessThan: HasLengthLT<RuleLength>;\n\tpublic readonly lessThanOrEqualTo: HasLengthLTE<RuleLength>;\n\n\tconstructor(rule: Rule, mods: RuleMods) {\n\t\tthis.equalTo = hasLengthEqualMake<RuleLength>(this, rule, mods);\n\t\tthis.greaterThan = hasLengthGTMake<RuleLength>(this, rule, mods);\n\t\tthis.greaterThanOrEqualTo = hasLengthGTEMake<RuleLength>(this, rule, mods);\n\t\tthis.lessThan = hasLengthLTMake<RuleLength>(this, rule, mods);\n\t\tthis.lessThanOrEqualTo = hasLengthLTEMake<RuleLength>(this, rule, mods);\n\t}\n}\n"]}