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.

  • onError: (reason: CoreRequestError) => void

    Called when the operation encounters an error.