UNPKG

decoval

Version:

DecoVal is a decorator-driven validation pattern that allows you to add validation rules directly to the properties of TypeScript classes, simplifying data control and increasing code readability and reusability.

7 lines (6 loc) 260 B
export type ValDateOptions = { minDate?: Date | { value: Date; message: string }; maxDate?: Date | { value: Date; message: string }; past?: boolean | { value: boolean; message: string }; future?: boolean | { value: boolean; message: string }; };