@codeparticle/formal
Version:
A <2kb library for validating data of any kind
1 lines • 408 B
Source Map (JSON)
{"version":3,"sources":["../src/rules/min-length.ts"],"sourcesContent":["import { createRule } from '../rule'\n\nexport const minLength = (length) =>\n createRule({\n condition: (str) => str.length >= length,\n message: `Must be at least ${length} characters`,\n })\n"],"mappings":";;;;;AAEO,IAAM,YAAY,CAAC,WACxB,WAAW;AAAA,EACT,WAAW,CAAC,QAAQ,IAAI,UAAU;AAAA,EAClC,SAAS,oBAAoB;AAC/B,CAAC;","names":[]}