fix: type annotation for logger
This commit is contained in:
parent
e8d53840d4
commit
ef4a3a1c7a
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
-- for the code i have stolen(or have inspected by idk)
|
-- for the code i have stolen(or have inspected by idk)
|
||||||
local c = require "gopher.config"
|
local c = require "gopher.config"
|
||||||
|
|
||||||
---@class Gopher.Logger
|
---@class gopher.Logger
|
||||||
---@field get_outfile fun():string
|
---@field get_outfile fun():string
|
||||||
---@field trace fun(...)
|
---@field trace fun(...)
|
||||||
---@field fmt_trace fun(...)
|
---@field fmt_trace fun(...)
|
||||||
|
|
@ -44,7 +44,7 @@ local config = {
|
||||||
float_precision = 0.01,
|
float_precision = 0.01,
|
||||||
}
|
}
|
||||||
|
|
||||||
---@type Gopher.Logger
|
---@type gopher.Logger
|
||||||
---@diagnostic disable-next-line: missing-fields
|
---@diagnostic disable-next-line: missing-fields
|
||||||
local log = {}
|
local log = {}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue