Skip to content

Commit 21dcf0a

Browse files
committed
chore(core): Fixed incorrect types for custom parts
1 parent c5d61d0 commit 21dcf0a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lua/bars/components/statuscolumn.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ end
342342
---@param config statusline.parts.custom
343343
---@return string
344344
scC.custom = function (_, _, config)
345-
return config.value;
345+
return config.value --[[ @as string ]];
346346
end
347347

348348
--- Returns the output of the section {name}.

lua/bars/components/statusline.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ end
474474
---@param config statusline.parts.custom
475475
---@return string
476476
slC.custom = function (_, _, config)
477-
return config.value;
477+
return config.value --[[ @as string ]];
478478
end
479479

480480
-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)