Skip to main content

Interface: ParamParameter

Metadata for a controller method parameter that receives a specific property from the event payload.

Extends​

Properties​

data​

data: string

The key of the property to extract from the payload.

Overrides​

BaseParameter.data


defaultValue?​

optional defaultValue: any

Inherited from​

BaseParameter.defaultValue


index​

index: number

The zero-based position of this parameter in the method signature.

Inherited from​

BaseParameter.index


isOptional?​

optional isOptional: boolean

Inherited from​

BaseParameter.isOptional


metatype?​

optional metatype: Function

Inherited from​

BaseParameter.metatype


method?​

optional method: string

Inherited from​

BaseParameter.method


type​

type: PARAM

The parameter kind: inject a single payload property.

Overrides​

BaseParameter.type