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