You create a signal like this:
local Signal = require(path.to.SignalPlus)
local mySignal = Signal() -- Creates a new signal.
You create a signal like this:
local Signal = require(path.to.SignalPlus)
local mySignal = Signal() -- Creates a new signal.
I know but if I change it to what I said before will it still work?
No. But this should work:
local Signal = require(script.SignalPlus)
return {
new = function()
return Signal()
end
}
it would be really nice to have a roblox-ts version of this package
This is Luau, not TypeScript. Also I like to not have to maintain lots of packages - if I add one, I have to add all, which is an insane amount of package managers - so instead, just use Roblox’s own package system.