Skip to content

Commit

Permalink
[CM-1540] Add support for headers in callhandler (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuwalow authored Oct 31, 2024
1 parent d9235e0 commit b5b10d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export type Headers = Record<string, string | undefined>

export interface ErrorBus {
emitErrorWithMessage(name: string, message: string, e?: unknown): this
emitError(name: string, exception?: unknown): this
Expand Down Expand Up @@ -28,7 +30,8 @@ export interface CallHandler {
url: string,
onSuccess: (responseText: string, response?: unknown) => void,
onError?: (error: unknown) => void,
timeout?: number
timeout?: number,
headers?: Headers
) => void
pixelGet?: (
url: string,
Expand Down

0 comments on commit b5b10d8

Please sign in to comment.