Skip to content

Commit d7e448b

Browse files
chore: fix logger types
1 parent bcc2f45 commit d7e448b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lua/rest-nvim/logger.lua

+6-5
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99

1010
local logger = {}
1111

12-
---@type fun(any)
12+
---@type fun(...)
1313
function logger.trace(_) end
14-
---@type fun(any)
14+
---@type fun(...)
1515
function logger.debug(_) end
16-
---@type fun(any)
16+
---@type fun(...)
1717
function logger.info(_) end
18-
---@type fun(any)
18+
---@type fun(...)
1919
function logger.warn(_) end
20-
---@type fun(any)
20+
---@type fun(...)
2121
function logger.error(_) end
2222

2323
local default_log_path = vim.fn.stdpath("log") --[[@as string]]
@@ -54,6 +54,7 @@ local function open_logfile()
5454
return false
5555
end
5656

57+
---@diagnostic disable-next-line: undefined-field
5758
local log_info = vim.uv.fs_stat(logger.get_logfile())
5859
if log_info and log_info.size > LARGE then
5960
local warn_msg =

0 commit comments

Comments
 (0)