Skip to content

Commit

Permalink
fix(types): Adjust type annotations to match actual returned value
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSM-5 authored and maskudo committed Feb 23, 2025
1 parent 4d07871 commit e416593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/devdocs/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ M.GetInstalledDocs = D.GetInstalledDocs

--- Get filepaths of all documents for a doc
--- @param doc string
--- @return [string] | nil
--- @return string[] | nil
M.GetDoc = function(doc)
return D.GetDocFiles(doc)
end

--- Get directory for a doc
--- @param doc string
--- @return [string] | nil
--- @return string | nil
M.GetDocDir = function(doc)
return C.DOCS_DIR .. '/' .. doc
end
Expand Down

0 comments on commit e416593

Please sign in to comment.