add(consumer) use type definitions
This commit is contained in:
parent
72c84c39e6
commit
3baa006cb0
|
@ -1,8 +1,3 @@
|
|||
local record Calculon
|
||||
add: function(number, number):number
|
||||
end
|
||||
|
||||
local _require = require
|
||||
local calculon = _require("calculon") as Calculon
|
||||
local calculon = require("calculon")
|
||||
|
||||
print(calculon.add(1, 2))
|
|
@ -1,4 +1,7 @@
|
|||
return {
|
||||
build_dir = "build",
|
||||
source_dir = "src",
|
||||
include_dir = {
|
||||
"lua_modules/share/lua/5.4"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue