(selection: { id: string; params?: ModelParam[] })
| 3825 | } |
| 3826 | |
| 3827 | function encodeModelSelection(selection: { id: string; params?: ModelParam[] }) { |
| 3828 | const params = selection.params?.filter((param) => param.value) |
| 3829 | return JSON.stringify({ |
| 3830 | id: selection.id, |
| 3831 | ...(params?.length ? { params } : {}), |
| 3832 | }) |
| 3833 | } |
| 3834 | |
| 3835 | function parseModelSelectionValue(value: string): { |
| 3836 | id: string |
no outgoing calls
no test coverage detected