@internal
(t: ReadonlyMap<string, SortDirection>)
| 107 | |
| 108 | /** @internal */ |
| 109 | function mapToMap(t: ReadonlyMap<string, SortDirection>): SortForCmd { |
| 110 | const sortEntries: SortPairForCmd[] = Array.from(t).map(([k, v]) => [ |
| 111 | `${k}`, |
| 112 | prepareDirection(v) |
| 113 | ]); |
| 114 | return new Map(sortEntries); |
| 115 | } |
| 116 | |
| 117 | /** converts a Sort type into a type that is valid for the server (SortForCmd) */ |
| 118 | export function formatSort( |
no test coverage detected