MCPcopy Create free account
hub / github.com/cloudconvert/cloudconvert-cli / castParameterValue

Function castParameterValue

src/job.ts:531–537  ·  view source on GitHub ↗
(parameterName: string, value: unknown, type: string)

Source from the content-addressed store, hash-verified

529}
530
531function castParameterValue(parameterName: string, value: unknown, type: string): unknown {
532 if (Array.isArray(value) && type.toLowerCase() !== 'input') {
533 return value.map(item => castSingleParameterValue(parameterName, item, type));
534 }
535
536 return castSingleParameterValue(parameterName, value, type);
537}
538
539function castSingleParameterValue(parameterName: string, value: unknown, type: string): unknown {
540 switch (type.toLowerCase()) {

Callers 1

castTaskParameterValuesFunction · 0.85

Calls 1

castSingleParameterValueFunction · 0.85

Tested by

no test coverage detected