(type)
| 164 | */ |
| 165 | ee.CustomFunction.create = function(func, returnType, arg_types) { |
| 166 | const stringifyType = function(type) { |
| 167 | if (typeof type === 'string') { |
| 168 | return type; |
| 169 | } else { |
| 170 | return ee.Types.classToName(type); |
| 171 | } |
| 172 | }; |
| 173 | const args = goog.array.map(arg_types, function(argType) { |
| 174 | return { |
| 175 | 'name': null, |