Skip to content

Interface: OnCommandDecorator()

Defined in: src/wirestate-core/plugin/commands/on-command.ts:55

Describes the decorator returned by OnCommand.

Remarks

Supports both TC39 and legacy experimental decorators.

Call Signature

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

Defined in: src/wirestate-core/plugin/commands/on-command.ts:57

Describes the decorator returned by OnCommand.

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
OnCommandDecorator(
   target: object, 
   propertyKey: string | symbol, 
   descriptor: PropertyDescriptor): void;

Defined in: src/wirestate-core/plugin/commands/on-command.ts:59

Describes the decorator returned by OnCommand.

Parameters

ParameterType
targetobject
propertyKeystring | symbol
descriptorPropertyDescriptor

Returns

void

Remarks

Supports both TC39 and legacy experimental decorators.