GitHub

DaffFilterRangeRequestBase

import { DaffFilterRangeRequestBase } from '@daffodil/core'

The base interface for range requests. Range requests have a name and a single defining the min and max values between which to filter.

interface DaffFilterRangeRequestBase<T> {
  type: DaffFilterType
  name: string
  value: DaffFilterRangeRequestOption<T>
}

Properties

type
DaffFilterType

The type of filter.

name
string

The name/code of the filter; e.g. price.

value
DaffFilterRangeRequestOption<T>

The value of the filter range.