Files
openapi-generator/modules/openapi-generator-cli/~/ts-fetch-client/middleware.ts

6 lines
216 B
TypeScript

import {RequestContext, ResponseContext} from './http/http';
export interface Middleware {
pre?(context: RequestContext): Promise<RequestContext>;
post?(context: ResponseContext): Promise<ResponseContext>;
}