Fixed Type Annotation for Client.Connect

This commit is contained in:
manee_too 2026-05-04 13:06:58 +07:00 committed by GitHub
parent a21a1e964b
commit a6456af3e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,7 @@ end
--@remoteName string
--@fn function
-- 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]
if not id then
warn(`[Warp]: ".Connect"::"{remoteName}" does not exist, likely its not registered on the server yet.`)