Directus / @directus/sdk / types / QuerySort
Type Alias: QuerySort<_Schema, Item> ​
QuerySort<
_Schema
,Item
>:UnpackList
<Item
> extends infer FlatItem ? { [Field in keyof FlatItem]: Field | `-${Field & string}` }[keyofFlatItem
] :never
Query sort TODO expand to relational sorting (same object notation as fields i guess)
Type Parameters ​
• _Schema
• Item