aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/fetch.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/mason-core/fetch.lua')
-rw-r--r--lua/mason-core/fetch.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/mason-core/fetch.lua b/lua/mason-core/fetch.lua
index 8aca8b89..3bb7a214 100644
--- a/lua/mason-core/fetch.lua
+++ b/lua/mason-core/fetch.lua
@@ -14,12 +14,12 @@ local USER_AGENT = "mason.nvim (+https://github.com/williamboman/mason.nvim)"
---| '"PATCH"'
---| '"DELETE"'
----@alias FetchOpts {out_file: string, method: FetchMethod, headers: table<string, string>, data: string}
+---@alias FetchOpts {out_file: string?, method: FetchMethod?, headers: table<string, string>?, data: string?}
---@async
----@param url string: The url to fetch.
----@param opts FetchOpts | nil
----@return Result: Result<string>
+---@param url string The url to fetch.
+---@param opts FetchOpts?
+---@return Result # Result<string>
local function fetch(url, opts)
opts = opts or {}
if not opts.headers then