@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.
13 lines (12 loc) • 636 B
TypeScript
import { IRouteParamsFactory } from './interfaces/route-params-factory.interface.js';
import { RouteParamtypes } from '@nestjs/common/internal';
import type { ApplicationConfig } from '../application-config.js';
export declare class RouteParamsFactory implements IRouteParamsFactory {
private readonly config?;
constructor(config?: ApplicationConfig | undefined);
exchangeKeyForValue<TRequest extends Record<string, any> = any, TResponse = any, TResult = any>(key: RouteParamtypes | string, data: string, { req, res, next }: {
req: TRequest;
res: TResponse;
next: Function;
}): TResult | null;
}