LDoc2tl/tests/types.lua

28 lines
428 B
Lua

-----------------------
-- Module using tparam for typed parameters.
--
-- @module types
--- has typed parameters, `string` and `int`.
-- And never forget `E = m*c^2`.
-- Reference to `two.md.First`
--
-- A reference to `mydata`.
-- @string name
-- @int age
-- @treturn mydata result
function _M.first (name,age)
end
--- a table of this module.
-- @table mydata
_M.mydata = {
one = 1, -- alpha
two = 2, -- beta
}