8000 fix(typing): axios response headers can be undefined (#4813) · axios/axios@bbb2264 · GitHub
[go: up one dir, main page]

Skip to content

Commit bbb2264

Browse files
gprstjasonsaayman
andauthored
fix(typing): axios response headers can be undefined (#4813)
Co-authored-by: Jay <jasonsaayman@gmail.com>
1 parent eff25a2 commit bbb2264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface CommonHeaders {
1111

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

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

0 commit comments

Comments
 (0)
0