Skip to main content

Interface: BaseParameter

Describes metadata for a single parameter of a controller event handler, indicating what value should be injected at runtime.

Extends

Extended by

Properties

data?

optional data: string

Optional extra data for the decorator, such as the payload property key when type is MethodParamType.PARAM.

Inherited from

ArgumentMetadata.data


defaultValue?

optional defaultValue: any


index

index: number

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

Inherited from

ArgumentMetadata.index


isOptional?

optional isOptional: boolean


metatype?

optional metatype: Function


method?

optional method: string


type

type: MethodParamType

The kind of parameter to inject (entire payload, single property, player object, etc.).

Inherited from

ArgumentMetadata.type