Skip to content

Function: decorate()

See

https://inversify.io/

Call Signature

ts
function decorate(decorators: ClassDecorator | ClassDecorator[], target: Function): void;

Defined in: @inversifyjs/core:

Parameters

ParameterType
decoratorsClassDecorator | ClassDecorator[]
targetFunction

Returns

void

Call Signature

ts
function decorate(
   decorators: ParameterDecorator | ParameterDecorator[], 
   target: Function, 
   parameterIndex: number): void;

Defined in: @inversifyjs/core:

Parameters

ParameterType
decoratorsParameterDecorator | ParameterDecorator[]
targetFunction
parameterIndexnumber

Returns

void

Call Signature

ts
function decorate(
   decorators: ParameterDecorator | ParameterDecorator[], 
   target: Function, 
   methodName: string | symbol, 
   parameterIndex: number): void;

Defined in: @inversifyjs/core:

Parameters

ParameterType
decoratorsParameterDecorator | ParameterDecorator[]
targetFunction
methodNamestring | symbol
parameterIndexnumber

Returns

void

Call Signature

ts
function decorate(
   decorators: 
  | MethodDecorator
  | PropertyDecorator
  | MethodDecorator[]
  | PropertyDecorator[], 
   target: Function, 
   property: string | symbol): void;

Defined in: @inversifyjs/core:

Parameters

ParameterType
decorators| MethodDecorator | PropertyDecorator | MethodDecorator[] | PropertyDecorator[]
targetFunction
propertystring | symbol

Returns

void