Function: RequirePolicies

RequirePolicies(...handlers): <TFunction, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void

Parameters

NameType
...handlersPolicyHandler[]

Returns

fn

▸ <TFunction, Y>(target, propertyKey?, descriptor?): void

Function that returns a new decorator that applies all decorators provided by param

Useful to build new decorators (or a decorator factory) encapsulating multiple decorators related with the same feature

Type parameters
NameType
TFunctionextends Function
YY
Parameters
NameType
targetobject | TFunction
propertyKey?string | symbol
descriptor?TypedPropertyDescriptor<Y>
Returns

void

Public Api

Defined in

lib/src/decorators/require-policies.decorator.ts:6open in new window