File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/replay/src/coreHandlers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ import { UNABLE_TO_SEND_REPLAY } from '../constants';
5
5
import type { ReplayContainer } from '../types' ;
6
6
import { isErrorEvent , isTransactionEvent } from '../util/eventUtils' ;
7
7
8
+ type AfterSendEventCallback = ( event : Event , sendResponse : TransportMakeRequestResponse | void ) => void ;
9
+
8
10
/**
9
11
* Returns a listener to be added to `client.on('afterSendErrorEvent, listener)`.
10
12
*/
11
- export function handleAfterSendEvent (
12
- replay : ReplayContainer ,
13
- ) : ( event : Event , sendResponse : TransportMakeRequestResponse | void ) => void {
13
+ export function handleAfterSendEvent ( replay : ReplayContainer ) : AfterSendEventCallback {
14
14
// Custom transports may still be returning `Promise<void>`, which means we cannot expect the status code to be available there
15
15
const enforceStatusCode = isBaseTransportSend ( ) ;
16
16
You can’t perform that action at this time.
0 commit comments