UNPKG

@codeparticle/formal

Version:

A <2kb library for validating data of any kind

56 lines (53 loc) 2.33 kB
import { getProp } from './rules/get-prop.js'; import { greaterThan } from './rules/greater-than.js'; import { hasProp } from './rules/has-prop.js'; import { isArray } from './rules/is-array.js'; import { isEqualTo } from './rules/is-equal-to.js'; import { isNonEmptyArray } from './rules/is-non-empty-array.js'; import { isNonEmptyObject } from './rules/is-non-empty-object.js'; import { isNonEmptyString } from './rules/is-non-empty-string.js'; import { isNumber } from './rules/is-number.js'; import { isObject } from './rules/is-object.js'; import { isString } from './rules/is-string.js'; import { isValidEmail } from './rules/is-valid-email.js'; import { lessThan } from './rules/less-than.js'; import { matchesRegex } from './rules/matches-regex.js'; import { maxLength } from './rules/max-length.js'; import { minLength } from './rules/min-length.js'; declare const index_getProp: typeof getProp; declare const index_greaterThan: typeof greaterThan; declare const index_hasProp: typeof hasProp; declare const index_isArray: typeof isArray; declare const index_isEqualTo: typeof isEqualTo; declare const index_isNonEmptyArray: typeof isNonEmptyArray; declare const index_isNonEmptyObject: typeof isNonEmptyObject; declare const index_isNonEmptyString: typeof isNonEmptyString; declare const index_isNumber: typeof isNumber; declare const index_isObject: typeof isObject; declare const index_isString: typeof isString; declare const index_isValidEmail: typeof isValidEmail; declare const index_lessThan: typeof lessThan; declare const index_matchesRegex: typeof matchesRegex; declare const index_maxLength: typeof maxLength; declare const index_minLength: typeof minLength; declare namespace index { export { index_getProp as getProp, index_greaterThan as greaterThan, index_hasProp as hasProp, index_isArray as isArray, index_isEqualTo as isEqualTo, index_isNonEmptyArray as isNonEmptyArray, index_isNonEmptyObject as isNonEmptyObject, index_isNonEmptyString as isNonEmptyString, index_isNumber as isNumber, index_isObject as isObject, index_isString as isString, index_isValidEmail as isValidEmail, index_lessThan as lessThan, index_matchesRegex as matchesRegex, index_maxLength as maxLength, index_minLength as minLength, }; } export { index as i };