import { MiddlewareGenerator } from './generator' ; import { IMiddlewareGenerator , IMiddlewareGeneratorConstructor } from './types' ; export function middleware < TSource = any , TContext = any , TArgs = any > ( generator ) { return new MiddlewareGenerator ( generator ) ; }