Millwork
    Preparing search index...

    Interface RangeOptions<O>

    Options of a rangeOf codec.

    interface RangeOptions<O> {
        bounds?: Bounds;
        of?: O;
        wire?: "object" | "iso" | "tuple" | "postgres";
    }

    Type Parameters

    • O
    Index
    bounds?: Bounds

    The bounds of the forms that have no bounds of their own. The default is '[)'.

    of?: O

    Options for the inner codec.

    wire?: "object" | "iso" | "tuple" | "postgres"

    The wire form on serialize. The default is 'object' ({ start, end }). The others are 'tuple' ([a, b]), 'iso' ("a/b", .. is unbounded) and 'postgres' ("[a,b)"). All forms are read, whatever this option is.