How to use the cwlts/models.isType function in cwlts

To help you get started, we’ve selected a few cwlts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rabix / composer / src / app / tool-editor / tool-editor.component.ts View on Github external
this.workflowWrapper.steps[0].in.forEach((input: WorkflowStepInputModel) => {

                if (isType(input, ["File", "Directory"])) {
                    // create inputs from file ports
                    this.workflowWrapper.createInputFromPort(input);
                } else {
                    // everything else should be exposed (show up in the step inspector)
                    this.workflowWrapper.exposePort(input);
                }
            });