Skip to content
API/SortParam

SortParam

src/types/sort-param.type.tstype

A ListParam holding sorts, as sortParam() builds it.

sortFields lists the API fields the param accepts. @qubeejs/react reads it to find a list’s sort param and to type toggleSort()’s argument.

type SortParam = ListParam<readonly Sort[]> & object