import { AnyObject } from 'tn-typescript'; import { ExoConnection } from '../../ExoConnection/ExoConnection'; import { ExoConnResponse } from '../../ExoConnection/ExoConnResponse/ExoConnResponse'; import { ExoContext } from '../../ExoContext/ExoContext'; export interface ExoRouteMiddlewareProps { conn: ExoConnection; res: ExoConnResponse; ctx: ExoContext; fields: F; } export type ExoRouteMiddleware = (props: ExoRouteMiddlewareProps) => any | Promise;