components/blockly-src/blocks/lists.js
function(newMode) {
    if (newMode == 'SPLIT') {
      this.outputConnection.setCheck('Array');
      this.getInput('INPUT').setCheck('String');
    } else {
      this.outputConnection.setCheck('String');
      this.getInput('INPUT').setCheck('Array');
    }
  }
function(newMode) {
    if (newMode == 'SPLIT') {
      this.outputConnection.setCheck('Array');
      this.getInput('INPUT').setCheck('String');
    } else {
      this.outputConnection.setCheck('String');
      this.getInput('INPUT').setCheck('Array');
    }
  }
function ( newMode ) { if ( newMode == 'SPLIT' ) { this . outputConnection . setCheck ( 'Array' ) ; this . getInput ( 'INPUT' ) . setCheck ( 'String' ) ; } else { this . outputConnection . setCheck ( 'String' ) ; this . getInput ( 'INPUT' ) . setCheck ( 'Array' ) ; } }
Modify this block to have the correct input and output types.
@param {string} newMode Either 'SPLIT' or 'JOIN'.
@private
@this Blockly.Block
Modify this block to have the correct input and output types .