fix(lua): add type hints for poll_callback

This commit is contained in:
əlemi 2024-09-06 13:21:19 +02:00
parent c1c9902b45
commit 5ca3fe52d7
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -307,6 +307,11 @@ local Codemp = {}
---connect to codemp server, authenticate and return client
function Codemp.connect(host, username, password) end
---@return function | nil
---@nodiscard
---check if codemp thread sent a callback to be run on main thread
function Codemp.poll_callback() end
---@param data string
---@return integer
---use xxh3 hash, returns an i64 from any string