chore(lua): update annotations

This commit is contained in:
əlemi 2024-09-01 03:13:40 +02:00 committed by zaaarf
parent 8296b473bb
commit c879d93452
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B

View file

@ -313,13 +313,13 @@ function Codemp.connect(host, username, password) end
function Codemp.hash(data) end function Codemp.hash(data) end
---@class (exact) RuntimeDriver ---@class (exact) RuntimeDriver
---@field stop fun(): boolean stops the runtime thread without deleting the runtime itself, returns false if driver was already stopped ---@field stop fun(self: RuntimeDriver): boolean stops the runtime thread without deleting the runtime itself, returns false if driver was already stopped
---@return RuntimeDriver ---@return RuntimeDriver
---spawns a background thread and uses it to run the codemp runtime ---spawns a background thread and uses it to run the codemp runtime
function Codemp.spawn_runtime_driver() end function Codemp.spawn_runtime_driver() end
---@param printer string | fun(string) log sink used for printing, if string will go to file, otherwise use given function ---@param printer? string | fun(string) log sink used for printing, if string will go to file, otherwise use given function
---@param debug boolean? show more verbose debug logs, default false ---@param debug boolean? show more verbose debug logs, default false
---@return boolean true if logger was setup correctly, false otherwise ---@return boolean true if logger was setup correctly, false otherwise
---setup a global logger for codemp, note that can only be done once ---setup a global logger for codemp, note that can only be done once