@commercetools/ts-client 0.0.0-beta.5 → 0.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commercetools-ts-client.browser.cjs.js +1 -1
- package/dist/commercetools-ts-client.browser.esm.js +1 -1
- package/dist/commercetools-ts-client.cjs.dev.js +1 -1
- package/dist/commercetools-ts-client.cjs.prod.js +1 -1
- package/dist/commercetools-ts-client.esm.js +1 -1
- package/dist/declarations/src/types/types.d.ts +4 -2
- package/package.json +1 -1
|
@@ -2,8 +2,9 @@ import { Buffer } from 'buffer/'
|
|
|
2
2
|
|
|
3
3
|
export type Nullable<T> = T | null
|
|
4
4
|
export type Keys = string | number | symbol
|
|
5
|
-
export type JsonObject<T = unknown> = { [key
|
|
5
|
+
export type JsonObject<T = unknown> = { [key in Keys]: T }
|
|
6
6
|
export type MiddlewareRequest = ClientRequest
|
|
7
|
+
export type Optional = { [k in Keys]: any }
|
|
7
8
|
|
|
8
9
|
export type Middleware = (next: Next) => (request: MiddlewareRequest) => Promise<MiddlewareResponse>
|
|
9
10
|
|
|
@@ -289,9 +290,10 @@ export type IClientOptions = {
|
|
|
289
290
|
body?: string | Buffer
|
|
290
291
|
timeout?: number
|
|
291
292
|
abortController?: AbortController
|
|
292
|
-
[k: string | number]: unknown
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
+
export type HttpClientOptions = IClientOptions & Optional
|
|
296
|
+
|
|
295
297
|
export type HttpClientConfig = IClientOptions & {
|
|
296
298
|
url: string
|
|
297
299
|
httpClient: Function
|