# ParamRegistry Class

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

# Overview

class ParamRegistry {
    static get(target: Type<any>, propertyKey: string | symbol, index: number): ParamMetadata;
    static has(target: Type<any>, propertyKey: string | symbol, index: number): boolean;
    static set(target: Type<any>, propertyKey: string | symbol, index: number, paramMetadata: ParamMetadata): void;
    static getParams(target: Type<any>, propertyKey: string | symbol): ParamMetadata[];
    static required(target: Type<any>, propertyKey: string | symbol, parameterIndex: number, allowedRequiredValues?: any[]): typeof ParamRegistry;
    static decorate(token: string | Type<any> | ParamTypes, options?: Partial<IParamConstructorOptions>): ParameterDecorator;
    static useFilter(filter: string | Type<any> | ParamTypes, options: IParamConstructorOptions): ParamMetadata;
}

# Members

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

static has(target: Type<any>, propertyKey: string | symbol, index: number): boolean

static set(target: Type<any>, propertyKey: string | symbol, index: number, paramMetadata: ParamMetadata): void

static getParams(target: Type<any>, propertyKey: string | symbol): ParamMetadata[]

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

static decorate(token: string | Type<any> | ParamTypes, options?: Partial<IParamConstructorOptions>): ParameterDecorator

Create a parameters decorators


static useFilter(filter: string | Type<any> | ParamTypes, options: IParamConstructorOptions): ParamMetadata