Skip to content

Commit

Permalink
fix(types): headers should be optional as well
Browse files Browse the repository at this point in the history
  • Loading branch information
lukashroch committed Oct 14, 2021
1 parent 2d1b305 commit 8318bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -113,7 +113,7 @@ export interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'hea
}

export interface CreateAxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
headers: Partial<HeadersDefaults>;
headers?: Partial<HeadersDefaults>;
}

export interface AxiosResponse<T = unknown, D = any> {
Expand Down

0 comments on commit 8318bb9

Please sign in to comment.