Global

Type Definitions

voltCallback(error, dataopt)

Volt general callback - used by all asynchronous core methods

In cases where the callback is omitted, a promise is returned from the method instead. The promise is resolved with data on success. On error, it's rejected with error. In cases where the error has data available, it can be found in error.data.

Parameters:
Name Type Attributes Description
error Error | null

an Error object, or null if no error occurred

data <optional>

the data from an asynchronous request, or undefined if there is no data

Source: