@internal
(t: { readonly [key: string]: SortDirection })
| 98 | |
| 99 | /** @internal */ |
| 100 | function objectToMap(t: { readonly [key: string]: SortDirection }): SortForCmd { |
| 101 | const sortEntries: SortPairForCmd[] = Object.entries(t).map(([k, v]) => [ |
| 102 | `${k}`, |
| 103 | prepareDirection(v) |
| 104 | ]); |
| 105 | return new Map(sortEntries); |
| 106 | } |
| 107 | |
| 108 | /** @internal */ |
| 109 | function mapToMap(t: ReadonlyMap<string, SortDirection>): SortForCmd { |
no test coverage detected