Setu-TS
    Preparing search index...

    Interface ParamSource<T>

    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.

    0.2.0

    interface ParamSource<T = unknown> {
        __value?: T;
        descriptor: Omit<ParameterMetadata, "index">;
    }

    Type Parameters

    • T = unknown
    Index
    __value?: T

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

    descriptor: Omit<ParameterMetadata, "index">

    The metadata this source contributes, less its positional index.