Skip to content

Commit

Permalink
fix: remove method property (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongpinWang authored Sep 5, 2024
1 parent 03f42b9 commit ec975d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/core/src/http-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export type CustomRequestConfig = Pick<
HttpRequestConfig,
| 'headers'
| 'params'
| 'method'
| 'middleware'
| 'maxContentLength'
| 'proxy'
Expand Down
2 changes: 1 addition & 1 deletion tests/type-tests/test/http-client.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ expectType<Promise<HttpResponse>>(

expectError<any>(executeRequest({}, { prompt: 'test prompt' }));

expectError<Promise<HttpResponse>>(
expectType<Promise<HttpResponse>>(
executeRequest(
{ url: 'https://example.com', apiVersion: 'v1' },
{ deploymentConfiguration: { deploymentId: 'test-id' } },
Expand Down

0 comments on commit ec975d0

Please sign in to comment.