(operations: CloudConvertOperation[])
| 27 | } |
| 28 | |
| 29 | export function collectOperationOptions(operations: CloudConvertOperation[]): Map<string, CloudConvertOperationOption> { |
| 30 | const parameterOptions = new Map<string, CloudConvertOperationOption>(); |
| 31 | |
| 32 | for (const operation of operations) { |
| 33 | for (const option of operation.options ?? []) { |
| 34 | parameterOptions.set(option.name, option); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | return parameterOptions; |
| 39 | } |
no outgoing calls
no test coverage detected