UNPKG

fluent-ts-validator

Version:
26 lines (25 loc) 908 B
import { PropertyValidator } from "../PropertyValidator"; /** * Validates if the given date lies between the lower and upper boundary. * * It can be specified whether the lower and/or upper boundary should be in- or excluded. * * '(' indicates exclusion of the lower boundary. * '[' indicates inclusion of the lower boundary. * ')' indicates exclusion of the upper boundary. * ']' indicates inclusion of the upper boundary. * * The IsBetweenValidator defaults to exclusion - (). * * @export * @class IsBetweenValidator * @implements {PropertyValidator<Date>} */ export declare class IsBetweenValidator implements PropertyValidator<Date> { private lowerDate; private upperDate; private lowerBoundary; private upperBoundary; constructor(lowerDate: Date, upperDate: Date, lowerBoundary?: "(" | "[", upperBoundary?: ")" | "]"); isValid(input: Date | undefined): boolean; }