Skip to content

Commit

Permalink
fix: make properties partially picked
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongpinWang committed Oct 22, 2024
1 parent 64e2a4b commit 65087c3
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions packages/core/src/http-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ import type {
/**
* The type for parameters in custom request configuration.
*/
export type CustomRequestConfig = Pick<
HttpRequestConfig,
| 'headers'
| 'params'
| 'middleware'
| 'maxContentLength'
| 'proxy'
| 'httpAgent'
| 'httpsAgent'
| 'parameterEncoder'
export type CustomRequestConfig = Partial<
Pick<
HttpRequestConfig,
| 'headers'
| 'params'
| 'middleware'
| 'maxContentLength'
| 'proxy'
| 'httpAgent'
| 'httpsAgent'
| 'parameterEncoder'
>
> &
Record<string, any>;

Expand Down

0 comments on commit 65087c3

Please sign in to comment.