Skip to content

Commit

Permalink
style: clean
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Nov 30, 2023
1 parent 5b1ebf1 commit 8beba2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interceptors/requestHeadersInterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { AxiosInterceptorOptions } from 'axios'

export interface RequestHeadersInterceptorOptions {
headers?: Record<string, string> | (() => Record<string, string>)
axiosInterceptorOptions?: AxiosInterceptorOptions
axiosInterceptorOptions?: AxiosInterceptorOptions
}

export function requestHeadersInterceptor(options: RequestHeadersInterceptorOptions = {}): RequestInterceptor {
Expand All @@ -23,6 +23,6 @@ export function requestHeadersInterceptor(options: RequestHeadersInterceptorOpti
onRejected(error) {
return Promise.reject(error)
},
options: options.axiosInterceptorOptions
options: options.axiosInterceptorOptions,
}
}

0 comments on commit 8beba2c

Please sign in to comment.