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
gprst and jasonsaayman committed Aug 10, 2022
1 parent eff25a2 commit bbb2264
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 bbb2264

Please sign in to comment.