Function: Param()

function Param(paramName: string): (_: undefined, context: ClassFieldDecoratorContext) => void;

Defined in: src/router/decorators/params.ts:25

Decorator for individual route parameters

Parameters

Parameter Type Description
paramName string The name of the route parameter (e.g., ‘id’ for ‘/users/:id’)

Returns

(_: undefined, context: ClassFieldDecoratorContext): void;

Parameters

Parameter Type
_ undefined
context ClassFieldDecoratorContext

Returns

void