Skip to content

Commit

Permalink
fix(typing): axios response headers can be undefined (#4813)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
2 people authored and phloose committed Sep 13, 2022
1 parent 6c7dba1 commit 4d517b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -11,7 +11,7 @@ interface CommonHeaders {

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

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

Expand Down

0 comments on commit 4d517b7

Please sign in to comment.