Skip to content

Commit

Permalink
fix(typescript): axios response headers can be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
gprst committed Jun 25, 2022
1 parent 62d8eb7 commit c5b19b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export type RawAxiosRequestHeaders = Partial<RawAxiosHeaders & MethodsHeaders &

export type AxiosRequestHeaders = Partial<RawAxiosHeaders & MethodsHeaders & CommonHeaders> & AxiosHeaders;

export type RawAxiosResponseHeaders = Partial<Record<string, string> & {
export type RawAxiosResponseHeaders = Partial<Record<string, string | undefined> & {
"set-cookie"?: string[]
}>;

Expand Down

0 comments on commit c5b19b1

Please sign in to comment.