(params: {[key: string]: any})
| 561 | } |
| 562 | |
| 563 | function stringify(params: {[key: string]: any}): {[key: string]: string} { |
| 564 | const res: {[key: string]: string} = {}; |
| 565 | Object.entries(params).forEach(([k, v]) => (res[k] = `${v}`)); |
| 566 | return res; |
| 567 | } |
| 568 | |
| 569 | function compare(path: string, params: {[key: string]: any}, segment: UrlSegment): boolean { |
| 570 | return path == segment.path && shallowEqual(params, segment.parameters); |
no test coverage detected