Skip to content

Commit a40a439

Browse files
committed
Extract http request callback to an alias
1 parent 8afc0ec commit a40a439

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

defns.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,10 @@ function PerlinNoiseMap:get_map_slice(slice_offset, slice_size, buffer) end
224224
---@class HttpApiTable
225225
local HttpApiTable = { }
226226

227+
---@alias HttpRequestCallback fun(res: HttpRequestResultDefn)
228+
227229
---@param req HttpRequestDefn
228-
---@param callback fun(res: HttpRequestResultDefn)
230+
---@param callback HttpRequestCallback
229231
function HttpApiTable.fetch(req, callback) end
230232
---@param req HttpRequestDefn
231233
---@return any handle

0 commit comments

Comments
 (0)