Skip to content

Commit

Permalink
chore: update LuaLS annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorias committed Aug 2, 2024
1 parent 3e25370 commit 4ea7e31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/coerce.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,16 @@ local effective_config = nil
local coercer = nil

--- Registers a new case.
--
--@tparam table case
---
---@param case table
M.register_case = function(case)
assert(coercer ~= nil, "Coercer is not initialized.")
coercer:register_case(case)
end

--- Registers a new mode.
--
--@tparam table mode
---
---@param mode table
M.register_mode = function(mode)
assert(coercer ~= nil, "Coercer is not initialized.")
coercer:register_mode(mode)
Expand Down

0 comments on commit 4ea7e31

Please sign in to comment.