The callback function to wrap.
Optionalscope: anyThe scope for the callback function.
OptionalisErrorCallback: booleanSet to true if the function is an error callback. If true, and you do not provide a separate callback, alert will popup showing the error message.
OptionalresponseTransformer: (json?: any) => TFunction to be invoked to transform the response object before invoking the primary callback function.
This is used to automatically parse returned JSON and call another success function passing that parsed JSON.