refactor: address emmylua diagnostics
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user