Function: RouteMetadata()
Call Signature
function RouteMetadata(): (value: undefined, context: ClassFieldDecoratorContext) => void;
Defined in: src/router/decorators/route-metadata.ts:14
Decorador sobrecargado para inyectar metadata de la ruta.
Uso sin parámetros:
Returns
(value: undefined, context: ClassFieldDecoratorContext): void;
Parameters
| Parameter | Type |
|---|---|
value |
undefined |
context |
ClassFieldDecoratorContext |
Returns
void
Route Metadata
metadata!: Record<string, any>; Inyecta toda la metadata de la ruta.
Uso con key: @RouteMetadata(‘role’) role!: string; Inyecta solo el valor específico de la metadata.
Call Signature
function RouteMetadata(key: string): (value: undefined, context: ClassFieldDecoratorContext) => void;
Defined in: src/router/decorators/route-metadata.ts:15
Decorador sobrecargado para inyectar metadata de la ruta.
Uso sin parámetros:
Parameters
| Parameter | Type |
|---|---|
key |
string |
Returns
(value: undefined, context: ClassFieldDecoratorContext): void;
Parameters
| Parameter | Type |
|---|---|
value |
undefined |
context |
ClassFieldDecoratorContext |
Returns
void
Route Metadata
metadata!: Record<string, any>; Inyecta toda la metadata de la ruta.
Uso con key: @RouteMetadata(‘role’) role!: string; Inyecta solo el valor específico de la metadata.