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