UNPKG

@codeparticle/formal

Version:

A <2kb library for validating data of any kind

38 lines (35 loc) 1.96 kB
// Type definitions for @codeparticle/formal 2.0.1 // Project: https://github.com/codeparticle/formal // Definitions by: Nick Krause <synapseradio@gmail.com> <https://github.com/codeparticle> // Definitions: https://github.com/codeparticle/formal // TypeScript Version: ^4.6.3 // Type definitions for @codeparticle/formal 2.0.1 // Project: https://github.com/codeparticle/formal // Definitions by: Nick Krause <synapseradio@gmail.com> <https://github.com/codeparticle> // Definitions: https://github.com/codeparticle/formal // TypeScript Version: ^4.6.3 export { Fail } from './fail.js'; export { pipeValidators, validateObject } from './internal/utils.js'; export { createRule, withMessage } from './rule.js'; export { i as rules } from './index-b46b810f.js'; export { Success } from './success.js'; export { CustomValidatorOptions, ValidationActions, ValidationCheck, ValidationErrorMessage, ValidationM, ValidationRule, ValidationRuleset } from './types/index.js'; export { compose } from './utils/compose.js'; export { pipe } from './utils/pipe.js'; export { Validator } from './validation.js'; export { getProp } from './rules/get-prop.js'; export { greaterThan } from './rules/greater-than.js'; export { hasProp } from './rules/has-prop.js'; export { isArray } from './rules/is-array.js'; export { isEqualTo } from './rules/is-equal-to.js'; export { isNonEmptyArray } from './rules/is-non-empty-array.js'; export { isNonEmptyObject } from './rules/is-non-empty-object.js'; export { isNonEmptyString } from './rules/is-non-empty-string.js'; export { isNumber } from './rules/is-number.js'; export { isObject } from './rules/is-object.js'; export { isString } from './rules/is-string.js'; export { isValidEmail } from './rules/is-valid-email.js'; export { lessThan } from './rules/less-than.js'; export { matchesRegex } from './rules/matches-regex.js'; export { maxLength } from './rules/max-length.js'; export { minLength } from './rules/min-length.js';