Skip to content

Commit

Permalink
Two more type annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Feb 15, 2025
1 parent 61018a8 commit a16651d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/lean/elan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ local elan = { toolchain = {} }
---@field path string the path to the toolchain on this machine
---@field resolved_name string the identifier for this toolchain

--List the installed toolchains.
---List the installed toolchains.
---@return string[] toolchains the toolchains
function elan.toolchain.list()
local state = elan.state()
return vim
.iter(state.toolchains.installed)
---@param each ElanToolchain
:map(function(each)
return each.resolved_name
end)
Expand Down

0 comments on commit a16651d

Please sign in to comment.