• Accepts an array of 2 elements containing from and to values and returns on object of shape:

    {
    greaterThan?: value[0],
    lessThan?: value[1],
    }

    The transformer is designed to be used on a property that has two filters (a 'from' as well as a 'to' filter) attached to it.

    Parameters

    • value: unknown

      An array of two string elements. Element 1 contains 'from' value, element 2 contains 'to' value.

    Returns boolean | Record<string, unknown>

    An object that can be used as filter for fields that accept greaterThan as well as lessThan options.

Generated using TypeDoc