Event
Members
Connect(self, callback) → (self, callback)
Connect the provided callback to be called when the event is fired.
The callback parameter is a Callback
.
The callback return is an EventConnection
.
_eventName
It is of the type Name
.
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> = {
_eventName: Name,
Connect: (self: Event<Name, Callback, Parameters...>, callback: Callback) -> EventConnection<Name, Callback>,
}