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 isInjectable: (target: any, method: string) =>; boolean;
    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;
    static hasNextFunction: (target: Type<;any>;, propertyKey: string) =>; boolean;
}

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 isInjectable: (target: any, method: string) =>; boolean

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

static hasNextFunction: (target: Type<;any>;, propertyKey: string) =>; boolean