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
| Parameter | Type |
|---|---|
value | (this: This, ...args: never[]) => unknown |
context | ClassMethodDecoratorContext<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
| Parameter | Type |
|---|---|
target | object |
propertyKey | string | symbol |
descriptor | PropertyDescriptor |
Returns
void