(parameterName: string, value: unknown)
| 605 | } |
| 606 | |
| 607 | function normalizeInputParameterFiles(parameterName: string, value: unknown): string | string[] { |
| 608 | if (typeof value === 'string') { |
| 609 | return value; |
| 610 | } |
| 611 | |
| 612 | if (Array.isArray(value) && value.every(item => typeof item === 'string')) { |
| 613 | return value; |
| 614 | } |
| 615 | |
| 616 | throw new Error(`Parameter ${parameterName} is an input file parameter and must be a file path.`); |
| 617 | } |
| 618 | |
| 619 | function getSecondaryUploadTaskName(parameterName: string, index: number): string { |
| 620 | return `upload-${parameterName}-${index}`; |
no outgoing calls
no test coverage detected