Skip to content

Commit 6b46163

Browse files
committed
chore(config): add types
1 parent 9ecfeb6 commit 6b46163

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lua/github-theme/config.lua

+8
Original file line numberDiff line numberDiff line change
@@ -185,19 +185,27 @@ end
185185
---@param opts GhTheme.Config.Options
186186
function M.set_options(opts)
187187
opts = opts or {}
188+
---@type GhTheme.Config.Options
188189
M.options = collect.deep_extend(M.options, opts)
189190
M.has_options = true
190191
end
191192

192193
function M.reset()
194+
---@type GhTheme.Config.Options
193195
M.options = collect.deep_copy(defaults)
194196
return M
195197
end
196198

199+
---@param opts? { output_path?: string, file_suffix?: string, theme?: string }
200+
---@return string
201+
---@return string
197202
function M.get_compiled_info(opts)
198203
opts = opts or {}
199204
local output_path = opts.output_path or M.options.compile_path
200205
local file_suffix = opts.file_suffix or M.options.compile_file_suffix
206+
207+
---@cast output_path -?
208+
---@cast file_suffix -?
201209
return output_path, util.join_paths(output_path, (opts.theme or M.theme) .. file_suffix)
202210
end
203211

0 commit comments

Comments
 (0)