@nestjs/common
Version:
Decorators, pipes, exceptions and utilities for NestJS applications: @Controller(), @Injectable(), @Body(), ValidationPipe, HttpException and more.
13 lines (12 loc) • 391 B
TypeScript
import { RequestMethod } from '../../enums/index.js';
import { Type } from '../type.interface.js';
import { VersionValue } from '../version-options.interface.js';
export interface RouteInfo {
path: string;
method: RequestMethod;
version?: VersionValue;
}
export interface MiddlewareConfiguration<T = any> {
middleware: T;
forRoutes: (Type<any> | string | RouteInfo)[];
}