Sets the options for the number range filter validators. Default { fromNumberIndex: 0, toNumberIndex: 1 }.
const [createFromValidator, createToValidator] = createNumberRangeValidators<T>();
const filters = FilterType<T>[] = {
 {
   label: 'Duration (From)',
   property: 'duration',
   type: FilterTypes.Numeric,
   onValidate: createFromValidator('duration'),
 },
 {
   label: 'Duration (To)',
   property: 'duration',
   type: FilterTypes.Numeric,
   onValidate: createToValidator('duration'),
 }
}
Generated using TypeDoc
Generates two functions for validating Number Ranges. Inputs for this function expects the number filters to be defined under a single key in FilterValues.