Skip to content

Commit

Permalink
chore: Update types for v1 axios
Browse files Browse the repository at this point in the history
  • Loading branch information
scottlovegrove committed Jan 17, 2024
1 parent a4bbba5 commit 3f43f61
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/restClient.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line import/no-named-as-default
import Axios, { AxiosResponse, AxiosError } from 'axios'
import applyCaseMiddleware from 'axios-case-converter'
import { TodoistRequestError } from './types/errors'
Expand Down Expand Up @@ -105,7 +106,9 @@ export async function request<T>(
case 'GET':
return await axiosClient.get<T>(relativePath, {
params: payload,
paramsSerializer,
paramsSerializer: {
serialize: paramsSerializer,
},
})
case 'POST':
return await axiosClient.post<T>(relativePath, payload)
Expand Down

0 comments on commit 3f43f61

Please sign in to comment.