ParamRegistry Class

Module
import { ParamRegistry } from "@tsed/common"
Source/packages/common/src/filters/registries/ParamRegistry.ts

Overview

class ParamRegistry {
    static get(target: Type<;any>;, targetKey: string | symbol, index: number): ParamMetadata;
    static getParams: (target: Type<;any>;, targetKey?: string | symbol | undefined) =>; ParamMetadata[];
    static set(target: Type<;any>;, targetKey: string | symbol, index: number, injectParams: ParamMetadata): void;
    static usePreHandler(service: symbol, settings: IParamArgs<;any>;): typeof ParamRegistry;
    static required(target: Type<;any>;, propertyKey: string | symbol, parameterIndex: number, allowedRequiredValues?: any[]): typeof ParamRegistry;
    static decorate(token: Type<;any>; | symbol, options?: Partial<;IInjectableParamSettings<;any>;>;): ParameterDecorator;
    static useFilter(service: Type<;any>;, options: IInjectableParamSettings<;any>;): ParamMetadata;
}

Members

static get(target: Type<;any>;, targetKey: string | symbol, index: number): ParamMetadata

static getParams: (target: Type<;any>;, targetKey?: string | symbol | undefined) =>; ParamMetadata[]

static set(target: Type<;any>;, targetKey: string | symbol, index: number, injectParams: ParamMetadata): void

static usePreHandler(service: symbol, settings: IParamArgs<;any>;): typeof ParamRegistry

static required(target: Type<;any>;, propertyKey: string | symbol, parameterIndex: number, allowedRequiredValues?: any[]): typeof ParamRegistry

static decorate(token: Type<;any>; | symbol, options?: Partial<;IInjectableParamSettings<;any>;>;): ParameterDecorator

Create a parameters decorators


static useFilter(service: Type<;any>;, options: IInjectableParamSettings<;any>;): ParamMetadata