EventConnection
Callback
The function that will be called when the event is fired.
It is of the type Callback.
It is read-only, it cannot be assigned to.
_eventName
It is of the type Name.
It is read-only, it cannot be assigned to.
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(
{} :: {
read _eventName: Name,
read Callback: Callback,
},
{} :: EventConnectionMetatable<Name, Callback>
))