Skip to content

Interface: LifecycleDecorator()

Defined in: src/wirestate-core/metadata/metadata-single-method-decorator.ts:14

Method decorator returned by the single-method lifecycle hooks: @OnActivation, @OnDeactivation, @OnProvision, and @OnDeprovision.

Call Signature

ts
LifecycleDecorator<This>(value: (this: This, ...args: never[]) => unknown, context: ClassMethodDecoratorContext<This>): void;

Defined in: src/wirestate-core/metadata/metadata-single-method-decorator.ts:16

Method decorator returned by the single-method lifecycle hooks: @OnActivation, @OnDeactivation, @OnProvision, and @OnDeprovision.

Type Parameters

Type Parameter
This

Parameters

ParameterType
value(this: This, ...args: never[]) => unknown
contextClassMethodDecoratorContext<This>

Returns

void

Call Signature

ts
LifecycleDecorator(
   target: object, 
   propertyKey: string | symbol, 
   descriptor: PropertyDescriptor): void;

Defined in: src/wirestate-core/metadata/metadata-single-method-decorator.ts:18

Method decorator returned by the single-method lifecycle hooks: @OnActivation, @OnDeactivation, @OnProvision, and @OnDeprovision.

Parameters

ParameterType
targetobject
propertyKeystring | symbol
descriptorPropertyDescriptor

Returns

void