@midwayjs/coreClassesMidwayMiddlewareService版本:Next本页总览MidwayMiddlewareService <T, R, N>Index ConstructorsconstructorPropertiesapplicationContextMethodscomposeConstructors constructornew MidwayMiddlewareService<T, R, N>(applicationContext: IMidwayContainer): MidwayMiddlewareService<T, R, N>Type parametersTRN = unknownProperties readonlyapplicationContextapplicationContext: IMidwayContainerMethods composecompose(middleware: (string | CommonMiddleware<T, R, N>)[], app: IMidwayBaseApplication<Context>, name?: string): Promise<{ _name: string }>