I guessed the syntax. Is it possible to type an alias for a function and give parameters not only types but also descriptions?
The @param part seems to be ignored.
---@meta
---@param client_id integer the id of the client
---@param data string raw data
---@param flags integer bitwise flags
---@alias OnServerMessage fun(client_id: integer, data: string, flags: integer)
---@type OnServerMessage
function on_server_message(client_id, data, flags)
print(client_id)
end