EngineCallbacks: {
    onSuccess: ((response: SegmentResponse) => void);
    onError: ((reason: CoreRequestError) => void);
}

Callbacks for handling the success or failure of an engine operation.

Type declaration

  • onSuccess: ((response: SegmentResponse) => void)

    Called when the operation is successful.

      • (response): void
      • Parameters

        Returns void

  • onError: ((reason: CoreRequestError) => void)

    Called when the operation encounters an error.

      • (reason): void
      • Parameters

        Returns void