Skip to content

Commit

Permalink
fix(lua): add type hints for poll_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
alemidev committed Sep 6, 2024
1 parent c1c9902 commit 5ca3fe5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dist/lua/annotations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ca3fe5

Please sign in to comment.