Skip to content

Commit

Permalink
fix for axios base query types
Browse files Browse the repository at this point in the history
  • Loading branch information
vtb221023 committed Feb 12, 2024
1 parent 1cb709b commit cab8664
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/rtk-query/usage/customizing-queries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ const axiosBaseQuery =
): BaseQueryFn<
{
url: string
method: AxiosRequestConfig['method']
method?: AxiosRequestConfig['method']
data?: AxiosRequestConfig['data']
params?: AxiosRequestConfig['params']
headers?: AxiosRequestConfig['headers']
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/src/query/tests/errorHandling.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ describe('custom axios baseQuery', () => {
): BaseQueryFn<
{
url: string
method: AxiosRequestConfig['method']
method?: AxiosRequestConfig['method']
data?: AxiosRequestConfig['data']
},
unknown,
Expand Down

0 comments on commit cab8664

Please sign in to comment.