more type hints and resolved diagnostic disables with 'as'

This commit is contained in:
Mikayla Fischler
2024-09-21 17:58:53 -04:00
parent ec2921e393
commit 2047794173
3 changed files with 9 additions and 7 deletions

View File

@@ -138,7 +138,7 @@ function util.strminw(str, width) return cc_strings.ensure_width(str, width) end
-- concatenation with built-in to string
---@nodiscard
---@vararg any
---@param ... any
---@return string
function util.concat(...)
local args, strings = t_pack(...), {}
@@ -152,7 +152,7 @@ util.c = util.concat
-- sprintf implementation
---@nodiscard
---@param format string
---@vararg any
---@param ... any
function util.sprintf(format, ...) return string.format(format, ...) end
-- format a number string with commas as the thousands separator<br>