interface ParamSource
Since 0.2.0

A declaration of where one handler argument comes from.

T is the value the source resolves to; it is carried in a phantom optional property so Params can check each source against the handler parameter it binds. The property is never read and never written at runtime.

Type Parameters

T = unknown

Properties

readonly
descriptor: Omit<ParameterMetadata, "index">

The metadata this source contributes, less its positional index.

readonly
optional
__value: T

Phantom carrier for the resolved value type. Never present at runtime.

Usage

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