Skip to content

Commit 750eac8

Browse files
update types
1 parent 1bebc6c commit 750eac8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: packages/middleware/src/types/server.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { CorsOptions, CorsOptionsDelegate } from "cors";
22
import bodyParser from "body-parser";
33
import cookieParser from "cookie-parser";
4-
import { TObject } from "./base";
54
import {
65
ApiClientExtension,
76
ApiMethods,
@@ -113,7 +112,7 @@ export interface ApiClientFactoryParams<
113112
| Promise<{ client: CLIENT; config: ApiClientConfig }>
114113
| { client: CLIENT; config: ApiClientConfig };
115114
extensions?: ApiClientExtension<API>[];
116-
init?: (configuration: CONFIG) => TObject;
115+
init?: (configuration: CONFIG) => CONFIG;
117116
}
118117

119118
export interface ApiClientFactory<
@@ -124,7 +123,7 @@ export interface ApiClientFactory<
124123
/**
125124
* Sets up integration config, runs once.
126125
*/
127-
init?: (configuration: CONFIG) => TObject;
126+
init?: (configuration: CONFIG) => CONFIG;
128127
}
129128

130129
export type CreateApiProxyFn = <CONFIG, API, CLIENT>(

0 commit comments

Comments
 (0)