API Reference
Rockets Core API
nestjs-crud
functions
CrudController

Function: CrudController()

CrudController(options): <TFunction, Y>(target, propertyKey?, descriptor?) => void

CRUD controller decorator

This decorator is a helper for calling the most common controller level decorators.

Parameters

ParameterType
optionsCrudControllerOptionsInterface

Returns

Function

Type Parameters

Type Parameter
TFunction extends Function
Y

Parameters

ParameterType
targetobject | TFunction
propertyKey?string | symbol
descriptor?TypedPropertyDescriptor<Y>

Returns

void

Defined in

packages/nestjs-crud/src/decorators/controller/crud-controller.decorator.ts:20 (opens in a new tab)