1 | import { ParamData } from '@nestjs/common';
|
2 | import { ContextType, Controller, PipeTransform } from '@nestjs/common/interfaces';
|
3 | import { ExecutionContextHost } from './execution-context-host';
|
4 | export interface ParamProperties<T = any, IExtractor extends Function = any> {
|
5 | index: number;
|
6 | type: T | string;
|
7 | data: ParamData;
|
8 | pipes: PipeTransform[];
|
9 | extractValue: IExtractor;
|
10 | }
|
11 | export declare class ContextUtils {
|
12 | mapParamType(key: string): string;
|
13 | reflectCallbackParamtypes(instance: Controller, methodName: string): any[];
|
14 | reflectCallbackMetadata<T = any>(instance: Controller, methodName: string, metadataKey: string): T;
|
15 | reflectPassthrough(instance: Controller, methodName: string): boolean;
|
16 | getArgumentsLength<T>(keys: string[], metadata: T): number;
|
17 | createNullArray(length: number): any[];
|
18 | mergeParamsMetatypes(paramsProperties: ParamProperties[], paramtypes: any[]): (ParamProperties & {
|
19 | metatype?: any;
|
20 | })[];
|
21 | getCustomFactory(factory: (...args: unknown[]) => void, data: unknown, contextFactory: (args: unknown[]) => ExecutionContextHost): (...args: unknown[]) => unknown;
|
22 | getContextFactory<TContext extends string = ContextType>(contextType: TContext, instance?: object, callback?: Function): (args: unknown[]) => ExecutionContextHost;
|
23 | }
|