UNPKG

bguard

Version:

**bguard** is a powerful, flexible, and type-safe validation library for TypeScript. It allows developers to define validation schemas for their data structures and ensures that data conforms to the expected types and constraints.

18 lines (16 loc) 529 B
import { setToDefaultLocale } from "./chunk-OE3L7EKN.mjs"; // src/asserts/string/lowerCase.ts var lowerCaseErrorMessage = "The received value is not in lowercase"; var lowerCaseErrorKey = "s:lowerCase"; var lowerCase = () => (received, ctx) => { if (received !== received.toLowerCase()) ctx.addIssue("lower case", received, lowerCaseErrorKey); }; lowerCase.key = lowerCaseErrorKey; lowerCase.message = lowerCaseErrorMessage; setToDefaultLocale(lowerCase); export { lowerCase }; //# sourceMappingURL=chunk-UHMICS34.mjs.map