UNPKG

@codeparticle/formal

Version:

A <2kb library for validating data of any kind

19 lines (17 loc) 374 B
import { createRule } from "./chunk-DDICIM7S.mjs"; // src/rules/is-string.ts var isString = createRule({ condition: (maybeStr) => typeof maybeStr === `string`, message: () => `Value is not a string` }); export { isString }; /** * @file Check to see if a value is typeof string * @author Nick Krause * @license MIT */ //# sourceMappingURL=chunk-B2N6YBDZ.mjs.map