@mantlebee/ts-data
    Preparing search index...

    Type Alias Sort<TItem>

    Order of the items of a QueryItemsPayload by one field.

    type Sort<TItem = Any> = {
        asc: boolean;
        field: KeyOf<TItem>;
    }

    Type Parameters

    • TItem = Any

      Type of the items.

    Index
    asc: boolean

    true for ascending, false for descending.

    field: KeyOf<TItem>

    Field to sort by.