fix: type annotation for logger

This commit is contained in:
Oleksandr Smirnov 2025-09-18 18:27:09 +03:00
parent e8d53840d4
commit ef4a3a1c7a
No known key found for this signature in database

View file

@ -3,7 +3,7 @@
-- for the code i have stolen(or have inspected by idk)
local c = require "gopher.config"
---@class Gopher.Logger
---@class gopher.Logger
---@field get_outfile fun():string
---@field trace fun(...)
---@field fmt_trace fun(...)
@ -44,7 +44,7 @@ local config = {
float_precision = 0.01,
}
---@type Gopher.Logger
---@type gopher.Logger
---@diagnostic disable-next-line: missing-fields
local log = {}