# Class ParamMetadata

Class
Module
import { ParamMetadata } from "@tsed/common"
Source/packages/common/src/mvc/models/ParamMetadata.ts

# Overview

class ParamMetadata extends JsonEntityStore implements ParamConstructorOptions {
expression<span class="token punctuation">:</span> <span class="token keyword">string</span><span class="token punctuation">;</span>

paramType<span class="token punctuation">:</span> <span class="token keyword">string</span> | <a href="/api/common/mvc/models/ParamTypes.html"><span class="token">ParamTypes</span></a><span class="token punctuation">;</span>
pipes<span class="token punctuation">:</span> <a href="/api/core/interfaces/Type.html"><span class="token">Type</span></a>&lt;<a href="/api/common/mvc/models/IPipe.html"><span class="token">IPipe</span></a>&gt;<span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
<span class="token keyword">constructor</span><span class="token punctuation">(</span>options<span class="token punctuation">:</span> <a href="/api/common/mvc/models/ParamConstructorOptions.html"><span class="token">ParamConstructorOptions</span></a><span class="token punctuation">)</span><span class="token punctuation">;</span>

get <span class="token function">parameter</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <a href="/api/schema/domain/JsonParameter.html"><span class="token">JsonParameter</span></a><span class="token punctuation">;</span>
<span class="token keyword">static</span> <span class="token function">get</span><span class="token punctuation">(</span>target<span class="token punctuation">:</span> <a href="/api/core/interfaces/Type.html"><span class="token">Type</span></a>&lt;<span class="token keyword">any</span>&gt;<span class="token punctuation">,</span> propertyKey<span class="token punctuation">:</span> <span class="token keyword">string</span> | symbol<span class="token punctuation">,</span> index<span class="token punctuation">:</span> <span class="token keyword">number</span><span class="token punctuation">)</span><span class="token punctuation">:</span> ParamMetadata<span class="token punctuation">;</span>
<span class="token keyword">static</span> <span class="token function">getParams</span><span class="token punctuation">(</span>target<span class="token punctuation">:</span> <a href="/api/core/interfaces/Type.html"><span class="token">Type</span></a>&lt;<span class="token keyword">any</span>&gt;<span class="token punctuation">,</span> propertyKey<span class="token punctuation">:</span> <span class="token keyword">string</span> | symbol<span class="token punctuation">)</span><span class="token punctuation">:</span> ParamMetadata<span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>

}

# Members

expression: string;

paramType: string | ParamTypes;

pipes: Type<IPipe>[];

get parameter(): JsonParameter;

Return the JsonOperation


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

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

Other topics