The callback event interface

interface CallbackEvent {
    callback: (() => void);
    type: string;
}

Properties

Properties

callback: (() => void)

The callback function to execute when the event triggers

type: string

The type/event of the callback. Used when it is dispatched.

(Should have been named on or event but it is type for consistency with other event types)