@tusss/ood
    Preparing search index...

    Interface SortParams<TField>

    Represents the parameters used to configure sorting.

    interface SortParams<TField extends string> {
        direction: "asc" | "desc";
        field: TField;
    }

    Type Parameters

    • TField extends string

      The union type of valid fields that can be sorted.

    Implemented by

    Index

    Properties

    Properties

    direction: "asc" | "desc"

    The direction of the sort: ascending (asc) or descending (desc).

    field: TField

    The field to sort by.