CustomEvent

The CustomEvent interface can be used to attach custom data to an event generated by an application.

MDN Reference

The read-only detail property of the CustomEvent interface returns any data passed when initializing the event.

MDN Reference

detail: T