File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ import type { ApiRequestOptions } from './ApiRequestOptions';
4
4
import type { ApiResult } from './ApiResult';
5
5
import type { OpenAPIConfig } from './OpenAPI';
6
6
7
- export interface BaseHttpRequest {
8
- request(
7
+ export interface BaseHttpRequest< T = any> {
8
+ request< K = T> (
9
9
options: ApiRequestOptions,
10
10
config: OpenAPIConfig,
11
11
mergeConfig?: OpenAPIConfig
12
- ): Promise<ApiResult >;
12
+ ): Promise<ApiResult <K> >;
13
13
}
Original file line number Diff line number Diff line change @@ -123,12 +123,12 @@ import type { ApiRequestOptions } from './ApiRequestOptions';
123
123
import type { ApiResult } from './ApiResult';
124
124
import type { OpenAPIConfig } from './OpenAPI';
125
125
126
- export interface BaseHttpRequest {
127
- request(
126
+ export interface BaseHttpRequest<T = any> {
127
+ request<K = T> (
128
128
options: ApiRequestOptions,
129
129
config: OpenAPIConfig,
130
130
mergeConfig?: OpenAPIConfig
131
- ): Promise<ApiResult>;
131
+ ): Promise<ApiResult<K> >;
132
132
}"
133
133
`;
134
134
@@ -2791,12 +2791,12 @@ import type { ApiRequestOptions } from './ApiRequestOptions';
2791
2791
import type { ApiResult } from './ApiResult';
2792
2792
import type { OpenAPIConfig } from './OpenAPI';
2793
2793
2794
- export interface BaseHttpRequest {
2795
- request(
2794
+ export interface BaseHttpRequest<T = any> {
2795
+ request<K = T> (
2796
2796
options: ApiRequestOptions,
2797
2797
config: OpenAPIConfig,
2798
2798
mergeConfig?: OpenAPIConfig
2799
- ): Promise<ApiResult>;
2799
+ ): Promise<ApiResult<K> >;
2800
2800
}"
2801
2801
`;
2802
2802
You can’t perform that action at this time.
0 commit comments