add(consumer) use type definitions

This commit is contained in:
Aire-One 2022-01-30 20:44:50 +01:00
parent 72c84c39e6
commit 3baa006cb0
2 changed files with 4 additions and 6 deletions

View File

@ -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))

View File

@ -1,4 +1,7 @@
return {
build_dir = "build",
source_dir = "src",
include_dir = {
"lua_modules/share/lua/5.4"
}
}