interface ParameterMetadata
Since 0.1.0

Metadata captured by a parameter decorator, later resolved by the resolveParameters function.

Properties

index: number

Positional index of the parameter in the handler signature.

Source of the parameter value.

optional
name: string

Name for named sources (@Query('page'), @Param('id'), …).

optional
customType: string

Custom parameter type name (from a Custom(name) source).

optional
metadata: Readonly<Record<string, unknown>>

Extra payload captured by a custom parameter decorator.

Usage

import { type ParameterMetadata } from "decorator-plugin/src/index.ts";