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