( value: ParameterValue, type: ParameterType, )
| 70 | } |
| 71 | |
| 72 | export function formatValueForInput( |
| 73 | value: ParameterValue, |
| 74 | type: ParameterType, |
| 75 | ): string { |
| 76 | if (type === 'array') { |
| 77 | try { |
| 78 | return JSON.stringify(value); |
| 79 | } catch { |
| 80 | return '[]'; |
| 81 | } |
| 82 | } |
| 83 | if (type === 'boolean') return String(value); |
| 84 | return String(value ?? ''); |
| 85 | } |
no outgoing calls
no test coverage detected