@vue-storefront/middleware
Advanced tools
Comparing version 3.6.0 to 3.6.1
import type { Express, Request, Response } from "express"; | ||
import { WithRequired } from "./index"; | ||
import { ApiClientMethod, ContextQuery, CustomQuery, CustomQueryFunction, TObject } from "./base"; | ||
import { ApiClientConfig, ApiClientFactory } from "./server"; | ||
import { ApiClient, ApiClientConfig, ApiClientFactory } from "./server"; | ||
export type ApiMethods = Record<string, ApiClientMethod>; | ||
@@ -40,3 +40,3 @@ export type ApiMethodsFactory<API extends ApiMethods, CONFIG extends ApiClientConfig> = (configuration: CONFIG) => API; | ||
configuration: any; | ||
}) => Promise<void>; | ||
}) => Promise<void> | void; | ||
hooks?: (req: Request, res: Response) => ApiClientExtensionHooks; | ||
@@ -76,3 +76,3 @@ } | ||
integrations: IntegrationsLoaded; | ||
getApiClient: (integrationName: string) => any; | ||
getApiClient: <Api = any, Config = any, Client = any>(integrationName: string) => ApiClient<Api, Config, Client>; | ||
} | ||
@@ -79,0 +79,0 @@ export type ExtendQuery = <T extends ContextQuery<string>, Key extends keyof T>(customQuery: CustomQuery<Key> | null, defaults: T) => ContextQuery<Key>; |
{ | ||
"name": "@vue-storefront/middleware", | ||
"version": "3.6.0", | ||
"version": "3.6.1", | ||
"main": "lib/index.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "lib/index.es.js", |
Sorry, the diff of this file is not supported yet
70409