From c879d9345214b40bd528fd7fc270d183d45ad7a6 Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 1 Sep 2024 03:13:40 +0200 Subject: [PATCH] chore(lua): update annotations --- dist/lua/annotations.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/lua/annotations.lua b/dist/lua/annotations.lua index 409b618..0daf8f0 100644 --- a/dist/lua/annotations.lua +++ b/dist/lua/annotations.lua @@ -313,13 +313,13 @@ function Codemp.connect(host, username, password) end function Codemp.hash(data) end ---@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 ---spawns a background thread and uses it to run the codemp runtime 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 ---@return boolean true if logger was setup correctly, false otherwise ---setup a global logger for codemp, note that can only be done once