(map: StringMap)
| 30 | } |
| 31 | |
| 32 | static stringify(map: StringMap) { |
| 33 | let str = ''; |
| 34 | for (const key in map) { |
| 35 | if (map.hasOwnProperty(key)) { |
| 36 | const value = map[key]; |
| 37 | if (str) { |
| 38 | str += '&'; |
| 39 | } |
| 40 | str += encodeURIComponent(key) + '=' + encodeURIComponent(value); |
| 41 | } |
| 42 | } |
| 43 | return str; |
| 44 | } |
| 45 | |
| 46 | static deepen(map: StringMap) { |
| 47 | // FIXME; Should be type Tree = Record<string, string | Tree> |
no outgoing calls