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 0c338d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ export type RawAxiosRequestHeaders = Partial<RawAxiosHeaders & MethodsHeaders &

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

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

export type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;

Expand Down

0 comments on commit 0c338d9

Please sign in to comment.