Skip to main content

LensStudio:Event.js.EventListener

Type alias

A function that handles event notifications.

EventListener<T> = T extends void ? () => void : (data) => void

A function that handles event notifications.

Type Parameters

Type ParameterDefault typeDescription
TvoidThe type of data passed to the listener. Use void for events without data.