Skip to main content

Function: Param()

Param(name?): (target, propertyKey, index) => void

Defined in: service-core/src/decorators/RouteDecorators.ts:229

Injects the value of the specified URI parameter with the given name as the value of the decorated argument. If no name is specified the entire request parameter will be injected.

Parameters

name?

string | undefined

The name of the URI parameter whose value will be injected.

Returns

(target, propertyKey, index) => void