Skip to content

Interface: OnEventDecorator()

Defined in: src/wirestate-core/plugin/events/on-event.ts:45

Describes the decorator returned by OnEvent.

Remarks

Supports both TC39 and legacy experimental decorators.

Call Signature

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

Defined in: src/wirestate-core/plugin/events/on-event.ts:48

Describes the decorator returned by OnEvent.

Type Parameters

Type Parameter
This

Parameters

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

Returns

void

Remarks

Supports both TC39 and legacy experimental decorators.

Call Signature

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

Defined in: src/wirestate-core/plugin/events/on-event.ts:50

Describes the decorator returned by OnEvent.

Parameters

ParameterType
targetobject
propertyKeystring | symbol
descriptorPropertyDescriptor

Returns

void

Remarks

Supports both TC39 and legacy experimental decorators.