Function: Query()

function Query<This>(queryName: string): (_: undefined, context: ClassFieldDecoratorContext) => void;

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

Decorator for individual query parameters

Type Parameters

Type Parameter
This extends object

Parameters

Parameter Type Description
queryName string The name of the query parameter (e.g., ‘page’ for ‘?page=1’)

Returns

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

Parameters

Parameter Type
_ undefined
context ClassFieldDecoratorContext

Returns

void