Skip to content

Interface: OnEventDecorator()<E>

Defined in: src/wirestate-lit/events/on-event.ts:16

Represents type returned by onEvent.

Remarks

Supports both TC39 and legacy experimental decorators.

Type Parameters

Type ParameterDefault type
E extends EventEvent

Call Signature

ts
OnEventDecorator<This>(value: (this: This, event: E) => void, context: ClassMethodDecoratorContext<This>): void;

Defined in: src/wirestate-lit/events/on-event.ts:18

Represents type returned by onEvent.

Type Parameters

Type Parameter
This extends Interface<Omit<ReactiveElement, "renderRoot">>

Parameters

ParameterType
value(this: This, event: E) => void
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-lit/events/on-event.ts:23

Represents type returned by onEvent.

Parameters

ParameterType
targetobject
propertyKeystring | symbol
descriptorPropertyDescriptor

Returns

void

Remarks

Supports both TC39 and legacy experimental decorators.