function - string, name of function (optional, only required when calling export functions in a service program) result - object defining the return type of the function (optional, only needed if return type is not void) type - string, type of parameter: see Acceptable types length - ...