(t: Sort)
| 68 | } |
| 69 | |
| 70 | function isDeep(t: Sort): t is ReadonlyArray<readonly [string, SortDirection]> { |
| 71 | return Array.isArray(t) && Array.isArray(t[0]); |
| 72 | } |
| 73 | |
| 74 | function isMap(t: Sort): t is ReadonlyMap<string, SortDirection> { |
| 75 | return t instanceof Map && t.size > 0; |