@vtex/api
Version:
VTEX I/O API client
6 lines (5 loc) • 389 B
TypeScript
import { InflightKeyGenerator, MiddlewareContext } from '../typings';
export type Inflight = Required<Pick<MiddlewareContext, 'cacheHit' | 'response'>>;
export declare const singleFlightMiddleware: (ctx: MiddlewareContext, next: () => Promise<void>) => Promise<void>;
export declare const inflightURL: InflightKeyGenerator;
export declare const inflightUrlWithQuery: InflightKeyGenerator;