UNPKG

openapi-connect

Version:
12 lines (11 loc) 354 B
import { HandleFunction } from 'connect'; import { IMiddlewareOptions } from '../../options'; export interface ICustomMiddleware { on: IMiddlewareCondition; handler: HandleFunction; } export interface IMiddlewareCondition { before?: MiddlewareKind; after?: MiddlewareKind; } export type MiddlewareKind = keyof IMiddlewareOptions | 'all';