Skip to main content

EventConnection

Members


Callback

The function that will be called when the event is fired. It is of the type Callback.


_eventName

It is of the type Name.

Luau Type

This is the luau type for EventConnection. It may help clear up mistranslations from the raw data to the wiki page (as it is an automatic process).

export type EventConnection<Name = string, Callback = (...unknown) -> ()> = typeof(setmetatable(
{} :: {
_eventName: Name,
Callback: Callback,
},
{} :: EventConnectionMetatable<Name, Callback>
))