Event
Connect(self, callback) → connection
Connect the provided callback to be called when the event is fired.
The callback parameter is a Callback.
The connection return is an EventConnection.
_eventName
It is of the type Name.
It is read-only, it cannot be assigned to.
Luau Type
This is the luau type for Event. It may help clear up mistranslations from the raw data to the wiki page (as it is an automatic process).
export type Event<Name = string, Callback = (...unknown) -> (), Parameters... = ...unknown> = {
read _eventName: Name,
read Connect: (self: Event<Name, Callback, Parameters...>, callback: Callback) -> (EventConnection<Name, Callback>),
}