Defines the options for DynReducerHelper.SortAPI.objectByPath serialized for current property and sort state.

interface ObjectByPathOptions<
    T extends { [key: string
    | number
    | symbol]: any },
> {
    customCompareFnMap?: PropertyPathMap<
        CompareFn<T>
        | DynReducer.Data.Sort<T>,
    >;
    path?: PropertyPath;
    state?: string;
    store?: MinimalWritable<ObjectByPathData>;
}

Type Parameters

  • T extends { [key: string | number | symbol]: any }
Hierarchy
Index
customCompareFnMap?: PropertyPathMap<CompareFn<T> | DynReducer.Data.Sort<T>>

An property path map with property paths associated with custom compare functions for those keys.

Current sorted object property if any.

state?: string

Current sort state:

- `none` no sorting.
- `asc` ascending sort.
- `desc` descending sort.

An external store that serializes the tracked prop and sorting state as ObjectByPathData.