Commit 6b46163 1 parent 9ecfeb6 commit 6b46163 Copy full SHA for 6b46163
File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -185,19 +185,27 @@ end
185
185
--- @param opts GhTheme.Config.Options
186
186
function M .set_options (opts )
187
187
opts = opts or {}
188
+ --- @type GhTheme.Config.Options
188
189
M .options = collect .deep_extend (M .options , opts )
189
190
M .has_options = true
190
191
end
191
192
192
193
function M .reset ()
194
+ --- @type GhTheme.Config.Options
193
195
M .options = collect .deep_copy (defaults )
194
196
return M
195
197
end
196
198
199
+ --- @param opts ? { output_path ?: string , file_suffix ?: string , theme ?: string }
200
+ --- @return string
201
+ --- @return string
197
202
function M .get_compiled_info (opts )
198
203
opts = opts or {}
199
204
local output_path = opts .output_path or M .options .compile_path
200
205
local file_suffix = opts .file_suffix or M .options .compile_file_suffix
206
+
207
+ --- @cast output_path -?
208
+ --- @cast file_suffix -?
201
209
return output_path , util .join_paths (output_path , (opts .theme or M .theme ) .. file_suffix )
202
210
end
203
211
You can’t perform that action at this time.
0 commit comments