UNPKG

371 BTypeScriptView Raw
1import { RouteParamtypes } from '@nestjs/common/enums/route-paramtypes.enum';
2export interface IRouteParamsFactory {
3 exchangeKeyForValue<TRequest extends Record<string, any> = any, TResponse = any, TResult = any>(key: RouteParamtypes | string, data: any, { req, res, next }: {
4 req: TRequest;
5 res: TResponse;
6 next: Function;
7 }): TResult;
8}