aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/receipt.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/mason-core/receipt.lua')
-rw-r--r--lua/mason-core/receipt.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/lua/mason-core/receipt.lua b/lua/mason-core/receipt.lua
index 68f6cf12..281d7148 100644
--- a/lua/mason-core/receipt.lua
+++ b/lua/mason-core/receipt.lua
@@ -2,6 +2,7 @@ local M = {}
---@alias InstallReceiptSchemaVersion
---| '"1.0"'
+---| '"1.1"'
---@alias InstallReceiptSourceType
---| '"npm"'
@@ -22,7 +23,8 @@ local M = {}
---@alias InstallReceiptSource {type: InstallReceiptSourceType}
---@class InstallReceiptLinks
----@field bin table<string, string>
+---@field bin? table<string, string>
+---@field share? table<string, string>
---@class InstallReceiptBuilder
---@field private secondary_sources InstallReceiptSource[]
@@ -36,6 +38,7 @@ function InstallReceiptBuilder.new()
secondary_sources = {},
links = {
bin = vim.empty_dict(),
+ share = vim.empty_dict(),
},
}, InstallReceiptBuilder)
end
@@ -64,7 +67,7 @@ function InstallReceiptBuilder:with_secondary_source(source)
return self
end
----@param typ '"bin"'
+---@param typ '"bin"' | '"share"'
---@param name string
---@param rel_path string
function InstallReceiptBuilder:with_link(typ, name, rel_path)