Skip to content

Commit 4c42bdc

Browse files
authored
feat(types): align CreateClientParams with contentful-sdk-core (#2635)
* feat(types): align CreateClientParams with contentful-sdk-core * Update contentful-sdk-core to 9.4.5
1 parent 2ef4adb commit 4c42bdc

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

lib/contentful.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import axios from 'axios'
7-
import type { AxiosAdapter, AxiosRequestConfig, AxiosResponse } from 'axios'
7+
import type { AxiosRequestConfig, AxiosResponse } from 'axios'
88

99
import { createHttpClient, getUserAgentHeader } from 'contentful-sdk-core'
1010
import { createGlobalOptions } from './create-global-options.js'
@@ -76,7 +76,11 @@ export interface CreateClientParams {
7676
/**
7777
* Optional axios request adapter (see <a href="https://github.com/mzabriskie/axios#request-config"> axios docs </a>)
7878
*/
79-
adapter?: AxiosAdapter
79+
adapter?: AxiosRequestConfig['adapter']
80+
/**
81+
* Axios fetch options
82+
*/
83+
fetchOptions?: AxiosRequestConfig['fetchOptions']
8084
/**
8185
* Application name and version e.g myApp/version
8286
*/

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)