(fileInputs: {[key: string]: any})
| 566 | } |
| 567 | |
| 568 | static isStructuredInputsFile (fileInputs: {[key: string]: any}): boolean { |
| 569 | return fileInputs._global !== undefined || Object.keys(fileInputs).some(k => !k.startsWith("_") && typeof fileInputs[k] === "object" && fileInputs[k] !== null && !Array.isArray(fileInputs[k])); |
| 570 | } |
| 571 | |
| 572 | static getGlobalFileInputs (fileInputs: {[key: string]: any}): {[key: string]: any} { |
| 573 | return Utils.isStructuredInputsFile(fileInputs) ? (fileInputs._global ?? {}) : {...fileInputs}; |
no outgoing calls
no test coverage detected