t×tecexpressby TeKOcloud
DEv0.7.1
API & types / VUE

TxSort.

Sort or group descriptor with a selector and descending direction.

ts
interface TxSort<T> {
  selector: TxSelector<T>
  desc?: boolean
}
FieldMeaning
selectorField path or getter for a query value.
descDescending sort order.
ts
import type { TxSort } from '@tekocloud.de/tecexpress'
const example: TxSort<{ id: number }> = { selector: 'id', desc: false }
console.log(example)