diff --git a/modules/typed-remote/init.luau b/modules/typed-remote/init.luau index 116e0a18..7a7ea30c 100644 --- a/modules/typed-remote/init.luau +++ b/modules/typed-remote/init.luau @@ -1,10 +1,10 @@ --!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..., + Connect: (self: Signal, fn: (T...) -> ()) -> RBXScriptConnection, + ConnectParallel: (self: Signal, fn: (T...) -> ()) -> RBXScriptConnection, + Once: (self: Signal, fn: (T...) -> ()) -> RBXScriptConnection, + Wait: (self: Signal) -> T..., } type PlayerSignal = { @@ -17,15 +17,15 @@ type PlayerSignal = { --[=[ @within TypedRemote @interface Event - .OnClientEvent PlayerSignal, - .OnServerEvent Signal, + .OnClientEvent 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, + OnClientEvent: Signal, + OnServerEvent: PlayerSignal, FireClient: (self: Event, player: Player, T...) -> (), FireAllClients: (self: Event, T...) -> (), FireServer: (self: Event, T...) -> (), diff --git a/modules/typed-remote/wally.toml b/modules/typed-remote/wally.toml index fe9838ae..f0a2b83a 100644 --- a/modules/typed-remote/wally.toml +++ b/modules/typed-remote/wally.toml @@ -1,7 +1,7 @@ [package] name = "sleitnick/typed-remote" description = "Simple networking package for typed RemoteEvents and RemoteFunctions" -version = "0.1.0" +version = "0.2.0" license = "MIT" authors = ["Stephen Leitnick"] registry = "https://github.com/UpliftGames/wally-index"