import { Middleware } from "./middleware.ts" ; export interface MiddlewareConfig { see EndpointConfigure . expectedPath expectedPath : string ; } export type MiddleWareWithConfigure = { configure : MiddlewareConfig ; middleWare : Middleware ; } ; export function MiddlewareConfig ( obj ) { return typeof obj === "object" && "expectedPath" in obj ; }