23 lines
393 B
Lua
23 lines
393 B
Lua
|
-----------------------
|
||
|
-- Module using tparam for typed parameters.
|
||
|
--
|
||
|
-- @module types
|
||
|
|
||
|
--- has typed parameters, `string` and `int`.
|
||
|
-- And never forget `E = m*c^2`.
|
||
|
--
|
||
|
-- 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
|
||
|
}
|