mirror of
https://github.com/imezx/Warp.git
synced 2026-05-13 14:24:13 +00:00
Merge pull request #31 from maneetoo/master
Some checks are pending
Deploy / Build & Deploy (push) Waiting to run
Some checks are pending
Deploy / Build & Deploy (push) Waiting to run
Fixed Type Annotation for Client.Connect
This commit is contained in:
commit
a27067c8df
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ end
|
||||||
--@remoteName string
|
--@remoteName string
|
||||||
--@fn function
|
--@fn function
|
||||||
-- Connect to an event to receive incoming data from the server.
|
-- Connect to an event to receive incoming data from the server.
|
||||||
Client.Connect = function(remoteName: string, fn: (Player, ...any?) -> ...any?): Connection
|
Client.Connect = function(remoteName: string, fn: (...any?) -> ...any?): Connection
|
||||||
local id = Replication.get_id[remoteName]
|
local id = Replication.get_id[remoteName]
|
||||||
if not id then
|
if not id then
|
||||||
warn(`[Warp]: ".Connect"::"{remoteName}" does not exist, likely its not registered on the server yet.`)
|
warn(`[Warp]: ".Connect"::"{remoteName}" does not exist, likely its not registered on the server yet.`)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue