Home > widget-integration > EventPayload

EventPayload interface

Base payload structure for filter events.

Contains the event key, new value, and optionally the previous value for tracking state transitions.

Signature:

export interface EventPayload 

Remarks

Specific event types may extend this with additional properties.

Properties

Property

Modifiers

Type

Description

key

keyof typeof EVENT_NAMES

The event that was triggered

newValue

unknown

New value after the change

oldValue?

unknown

(Optional) Previous value before the change (optional)