Skip to content
API/SortDirection

SortDirection

src/types/sort-direction.type.tstype

Sort direction, as a union of string literals derived from SortEnum. Accepts both the enum member and its value.

Named SortDirection rather than Sort because Sort is the { field, order } shape.

Like FilterOperator, this widened form is accepted at the public API boundary only — the internal Sort state keeps SortEnum, because 17 call sites compare it against enum members directly.

type SortDirection = template literal