rusty-luau/mod.luau

15 lines
411 B
Lua
Raw Normal View History

2024-04-14 14:27:48 +01:00
local luau = require("@lune/luau")
local fs = require("@lune/fs")
local SIGNAL_PATH = "Packages/_Index/ffrostflame_luausignal@0.2.4/luausignal/src/init.luau"
local _signal = require(SIGNAL_PATH)
export type Signal<T...> = _signal.luauSignal<T...>
local signal: {
new: <T...>() -> Signal<T...>,
} =
luau.load('local task = require("@lune/task")\n' .. fs.readFile(SIGNAL_PATH))()
return {
signal = signal,
}