Type Alias Listener

Listener: ((event: PathEvent, ...args: any[]) => any)

Represents a function that listens for events and handles them accordingly.

Type declaration

    • (event, ...args): any
    • Parameters

      • event: PathEvent

        The event object containing data related to the triggered event.

      • Rest...args: any[]

        Additional arguments that may be passed to the listener.

      Returns any

      The return value of the listener, which can vary based on implementation.