functional
This commit is contained in:
7
test.lua
Normal file
7
test.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
||||
menu.add_feature(
|
||||
"test",
|
||||
"action",
|
||||
0,
|
||||
function() return ui.notify_above_map("Hello from TypeScript", "", 140) end
|
||||
)
|
||||
4
ts-lua/dist/test.lua
vendored
4
ts-lua/dist/test.lua
vendored
@@ -3,7 +3,5 @@ menu.add_feature(
|
||||
"test",
|
||||
"action",
|
||||
0,
|
||||
function()
|
||||
ui.notify_above_map("test", "test tile", 140)
|
||||
end
|
||||
function() return ui.notify_above_map("Hello from TypeScript", "", 140) end
|
||||
)
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "tstl",
|
||||
"build": "tstl && npm run post-build",
|
||||
"post-build": "cp dist/test.lua ../test.lua",
|
||||
"dev": "tstl --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
menu.add_feature('test', 'action', 0, () => ui.notify_above_map('from TypeScript', 'Hello', 140))
|
||||
menu.add_feature('test', 'action', 0, () =>
|
||||
ui.notify_above_map('Hello from TypeScript', '', 140))
|
||||
|
||||
Reference in New Issue
Block a user