@geekmidas/cli 10.0.0-alpha.21 → 10.0.0-alpha.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1642,6 +1642,8 @@ export interface CreateApiOptions {
1642
1642
  queryClient?: QueryClient;
1643
1643
  /** Optional request interceptor */
1644
1644
  onRequest?: (config: RequestInit) => RequestInit | Promise<RequestInit>;
1645
+ /** The \`fetch\` requests go out on — a test browser's, for one */
1646
+ fetch?: typeof fetch;
1645
1647
  }
1646
1648
 
1647
1649
  /**
@@ -1671,6 +1673,7 @@ export function createApi(options: CreateApiOptions) {
1671
1673
  securitySchemes,
1672
1674
  authStrategies: options.authStrategies,
1673
1675
  onRequest: options.onRequest,
1676
+ ...(options.fetch ? { fetch: options.fetch } : {}),
1674
1677
  });
1675
1678
 
1676
1679
  const hooks = createEndpointHooks<paths>(fetcher, { queryClient: options.queryClient });
@@ -1986,6 +1989,6 @@ async function runOpenApiInSubprocess(appCwd, appName) {
1986
1989
  });
1987
1990
  }
1988
1991
  //#endregion
1989
- export { openapiCommand as a, runtimeFor as c, openApiPathFor as i, generateOpenApi as n, resolveOpenApiConfig as o, generateOpenApiFrom as r, EndpointGenerator as s, OPENAPI_OUTPUT_PATH as t };
1992
+ export { openapiCommand as a, EndpointGenerator as c, openApiPathFor as i, runtimeFor as l, generateOpenApi as n, resolveOpenApiConfig as o, generateOpenApiFrom as r, OpenApiTsGenerator as s, OPENAPI_OUTPUT_PATH as t };
1990
1993
 
1991
- //# sourceMappingURL=openapi-DfjbhrsM.mjs.map
1994
+ //# sourceMappingURL=openapi-B5PSuLym.mjs.map