UNPKG

robust-validator

Version:

Rule-based data validation library

15 lines (14 loc) 395 B
/** * The field under validation must be before or equal to the given date. * * @example * import { beforeOrEqual } from "robust-validator" * * const definition = { * value: [beforeOrEqual("2023-01-01")] * }; * @type {string} * @tutorial https://validator.axe-api.com/rules.html#before-or-equal-date */ declare const _default: (date: string) => string; export default _default;