Skip to content

Interface: OnQueryDecorator()

Defined in: src/wirestate-core/plugin/queries/on-query.ts:55

Describes the decorator returned by OnQuery.

Remarks

Supports both TC39 and legacy experimental decorators.

Call Signature

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

Defined in: src/wirestate-core/plugin/queries/on-query.ts:57

Describes the decorator returned by OnQuery.

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

Defined in: src/wirestate-core/plugin/queries/on-query.ts:59

Describes the decorator returned by OnQuery.

Parameters

ParameterType
targetobject
propertyKeystring | symbol
descriptorPropertyDescriptor

Returns

void

Remarks

Supports both TC39 and legacy experimental decorators.