Skip to content

covenix / getParams

Function: getParams() ​

getParams(target, handlerName): ParamMetadata[]

Defined in: src/metadata.ts:500

Reads the injected-parameter metadata for a handler. Parameter decorators run right-to-left, so this list is not in declaration order; each entry carries its own index for the caller to place by.

Parameters ​

target ​

object

The controller prototype.

handlerName ​

string

The method name to read parameters for.

Returns ​

ParamMetadata[]

The parameter metadata entries (possibly empty).