diff --git a/modules/typed-remote/init.luau b/modules/typed-remote/init.luau index 116e0a18..c28b5d0f 100644 --- a/modules/typed-remote/init.luau +++ b/modules/typed-remote/init.luau @@ -1,12 +1,5 @@ --!strict -type Signal = { - Connect: (self: PlayerSignal, fn: (T...) -> ()) -> RBXScriptConnection, - ConnectParallel: (self: PlayerSignal, fn: (T...) -> ()) -> RBXScriptConnection, - Once: (self: PlayerSignal, fn: (T...) -> ()) -> RBXScriptConnection, - Wait: (self: PlayerSignal) -> T..., -} - type PlayerSignal = { Connect: (self: PlayerSignal, fn: (player: Player, T...) -> ()) -> RBXScriptConnection, ConnectParallel: (self: PlayerSignal, fn: (player: Player, T...) -> ()) -> RBXScriptConnection, @@ -18,14 +11,14 @@ type PlayerSignal = { @within TypedRemote @interface Event .OnClientEvent PlayerSignal, - .OnServerEvent Signal, + .OnServerEvent PlayerSignal, .FireClient (self: Event, player: Player, T...) -> (), .FireAllClients (self: Event, T...) -> (), .FireServer (self: Event, T...) -> (), ]=] export type Event = Instance & { OnClientEvent: PlayerSignal, - OnServerEvent: Signal, + OnServerEvent: PlayerSignal, FireClient: (self: Event, player: Player, T...) -> (), FireAllClients: (self: Event, T...) -> (), FireServer: (self: Event, T...) -> (),