Skip to content

Commit

Permalink
fix(types): allow AxiosRequestHeaders as well
Browse files Browse the repository at this point in the history
  • Loading branch information
lukashroch committed Oct 15, 2021
1 parent 8318bb9 commit 05c4a72
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?: AxiosRequestHeaders | Partial<HeadersDefaults>;
}

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

0 comments on commit 05c4a72

Please sign in to comment.