UNPKG

@nestjs/core

Version:

The core of NestJS, a TypeScript framework for Node.js backends: modules, dependency injection and the request pipeline, on Express, Fastify or node:http.

20 lines (19 loc) • 915 B
import type { InjectionToken } from '@nestjs/common'; import { NestContainer } from '../injector/container.js'; import { InstanceWrapper } from '../injector/instance-wrapper.js'; import type { MiddlewareConfiguration } from '@nestjs/common/internal'; export declare class MiddlewareContainer { private readonly container; private readonly middleware; private readonly configurationSets; constructor(container: NestContainer); getMiddlewareCollection(moduleKey: string): Map<InjectionToken, InstanceWrapper>; getConfigurations(): Map<string, Set<MiddlewareConfiguration>>; /** * Gives the module its place among the configurations, which are kept in * the order of insertion, before its configurations are known. */ reserveConfig(moduleKey: string): void; insertConfig(configList: MiddlewareConfiguration[], moduleKey: string): void; private getTargetConfig; }