Interface: OnQueryDecorator()<D, R>
Defined in: src/wirestate-lit/queries/on-query.ts:16
Represents type returned by onQuery.
Remarks
Supports both TC39 and legacy experimental decorators.
Type Parameters
| Type Parameter | Default type |
|---|---|
D | unknown |
R | unknown |
Call Signature
ts
OnQueryDecorator<This>(value: (this: This, data: D) => MaybePromise<R>, context: ClassMethodDecoratorContext<This>): void;Defined in: src/wirestate-lit/queries/on-query.ts:18
Represents type returned by onQuery.
Type Parameters
| Type Parameter |
|---|
This extends Interface<Omit<ReactiveElement, "renderRoot">> |
Parameters
| Parameter | Type |
|---|---|
value | (this: This, data: D) => MaybePromise<R> |
context | ClassMethodDecoratorContext<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-lit/queries/on-query.ts:23
Represents type returned by onQuery.
Parameters
| Parameter | Type |
|---|---|
target | object |
propertyKey | string | symbol |
descriptor | PropertyDescriptor |
Returns
void
Remarks
Supports both TC39 and legacy experimental decorators.