code: function mergeTypes(...types) {
    let allTypes = [];
    types.forEach(type => {
      (type.allTypes || [type]).forEach(type => {
        if (allTypes.indexOf(type) < 0) allTypes.push(type);
      });
    });
    return allTypes;
  }
docs: Combine dependencies of multiple types.
  @param types
  @return {Array}