Function getOnFailure

  • Standard documented name for error callback arguments is "failure" but various other names have been employed in past. This function provides reverse compatibility by picking the failure callback argument out of a config object be it named failure, failureCallback or errorCallback.

    Parameters

    • config: {
          errorCallback?: any;
          failure?: any;
          failureCallback?: any;
      }
      • Optional errorCallback?: any
      • Optional failure?: any
      • Optional failureCallback?: any

    Returns any

Generated using TypeDoc