File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -140,30 +140,6 @@ export const minDateValidator: Validator<{
140140 : true ,
141141} ;
142142
143- export const minDateRangeValidator : Validator < {
144- value ?: ( Date | null ) [ ] | null ;
145- min ?: Date | null ;
146- } > = {
147- key : 'rangeUnderflow' ,
148- message : ( { min } ) => formatString ( validatorMessages . min , min ) ,
149- isValid : ( { value, min } ) =>
150- value ?. [ 0 ] && min
151- ? ! DateTimeUtil . lessThanMinValue ( value [ 0 ] , min , false , true )
152- : true ,
153- } ;
154-
155- export const maxDateRangeValidator : Validator < {
156- value ?: ( Date | null ) [ ] | null ;
157- max ?: Date | null ;
158- } > = {
159- key : 'rangeOverflow' ,
160- message : ( { max } ) => formatString ( validatorMessages . max , max ) ,
161- isValid : ( { value, max } ) =>
162- value ?. [ 1 ] && max
163- ? ! DateTimeUtil . greaterThanMaxValue ( value [ 1 ] , max , false , true )
164- : true ,
165- } ;
166-
167143export const maxDateValidator : Validator < {
168144 value ?: Date | null ;
169145 max ?: Date | null ;
You can’t perform that action at this time.
0 commit comments