(outlets: {[name: string]: readonly unknown[] | string})
| 544 | } |
| 545 | |
| 546 | function createNewSegmentChildren(outlets: {[name: string]: readonly unknown[] | string}): { |
| 547 | [outlet: string]: UrlSegmentGroup; |
| 548 | } { |
| 549 | const children: {[outlet: string]: UrlSegmentGroup} = {}; |
| 550 | Object.entries(outlets).forEach(([outlet, commands]) => { |
| 551 | if (typeof commands === 'string') { |
| 552 | commands = [commands]; |
| 553 | } |
| 554 | if (commands !== null) { |
| 555 | children[outlet] = createNewSegmentGroup(new UrlSegmentGroup([], {}), 0, commands); |
| 556 | } |
| 557 | }); |
| 558 | return children; |
| 559 | } |
| 560 | |
| 561 | function stringify(params: {[key: string]: any}): {[key: string]: string} { |
| 562 | const res: {[key: string]: string} = {}; |
no test coverage detected
searching dependent graphs…