From cab8664fb0654be46ff97dfa81140239c26e7933 Mon Sep 17 00:00:00 2001 From: vtb221023 Date: Mon, 12 Feb 2024 10:21:15 +0300 Subject: [PATCH] fix for axios base query types --- docs/rtk-query/usage/customizing-queries.mdx | 2 +- packages/toolkit/src/query/tests/errorHandling.test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rtk-query/usage/customizing-queries.mdx b/docs/rtk-query/usage/customizing-queries.mdx index 8532ecf26c..d051c9b6a8 100644 --- a/docs/rtk-query/usage/customizing-queries.mdx +++ b/docs/rtk-query/usage/customizing-queries.mdx @@ -369,7 +369,7 @@ const axiosBaseQuery = ): BaseQueryFn< { url: string - method: AxiosRequestConfig['method'] + method?: AxiosRequestConfig['method'] data?: AxiosRequestConfig['data'] params?: AxiosRequestConfig['params'] headers?: AxiosRequestConfig['headers'] diff --git a/packages/toolkit/src/query/tests/errorHandling.test.tsx b/packages/toolkit/src/query/tests/errorHandling.test.tsx index 83338ec722..f5a611ec10 100644 --- a/packages/toolkit/src/query/tests/errorHandling.test.tsx +++ b/packages/toolkit/src/query/tests/errorHandling.test.tsx @@ -390,7 +390,7 @@ describe('custom axios baseQuery', () => { ): BaseQueryFn< { url: string - method: AxiosRequestConfig['method'] + method?: AxiosRequestConfig['method'] data?: AxiosRequestConfig['data'] }, unknown,