code: function getAlternateTypes(method) {
            var types = [];
  
            function process(arr) {
              if (arr) {
                arr.forEach(function(obj) {
                  if (obj.type) {
                    var split = obj.type.split('|');
                    if (split.length > 1) {
                      types = types.concat(split);
                    }
                  }
                });
              }
            }
  
            process(method.params);
            process(method.options);
  
            return types;
          }
docs: If the param has multiple types, then move callbacks into the module as named types. Only do this if there are multiple types, otherwise the callback signature can be inlined into the method declaration.