chore(callbacks): update annotations

This commit is contained in:
Linden
2021-11-11 07:56:15 +11:00
parent ab4807fee0
commit 9a60f3bd1d
3 changed files with 10 additions and 6 deletions

View File

@@ -1,5 +1,9 @@
local ServerCallback = {
Register = function(name, callback)
local ServerCallback = {}
---@param name string
---@param callback function
--- Registers an event handler and callback function to respond to client requests.
ServerCallback.Register = function(name, callback)
name = ('__cb_%s:%s'):format(GetCurrentResourceName(), name)
RegisterServerEvent(name, function(...)