From 5ca3fe52d7b57dd3b9adb04eebfe6d4023f37b37 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 6 Sep 2024 13:21:19 +0200 Subject: [PATCH] fix(lua): add type hints for poll_callback --- dist/lua/annotations.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dist/lua/annotations.lua b/dist/lua/annotations.lua index 0daf8f0..6408412 100644 --- a/dist/lua/annotations.lua +++ b/dist/lua/annotations.lua @@ -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