refactor: address emmylua diagnostics

This commit is contained in:
2026-04-20 22:11:18 +02:00
parent 516b9ea749
commit c7dd083083
29 changed files with 542 additions and 532 deletions
+2
View File
@@ -114,9 +114,11 @@ function M.normalize(field)
if type(field) == "table" then
if type(field.lang) == "string" then
---@cast field ow.TS.ParserSpec
return { field }
end
if type(field[1]) == "table" then
---@cast field ow.TS.ParserSpec[]
return field
end
end