File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/middleware/src/types Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11import { CorsOptions , CorsOptionsDelegate } from "cors" ;
22import bodyParser from "body-parser" ;
33import cookieParser from "cookie-parser" ;
4- import { TObject } from "./base" ;
54import {
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
119118export 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
130129export type CreateApiProxyFn = < CONFIG , API , CLIENT > (
You can’t perform that action at this time.
0 commit comments