1.2.0 • Published 9 months ago
@rbxts/lemon-signal v1.2.0
Lemon Signal
Typings for Lemon Signal.
A pure Luau signal implementation faster than most other implementations in Roblox.
Documentation
Roblox-ts Typings
This signal supports tuple/callback/value typings.
// callback
const signal = new Signal<(foo: string) => void>();
// tuple
const signal = new Signal<[foo: string]>();
// value
const signal = new Signal<string>(); // single value only
// empty
const signal = new Signal(); // Signal<() => void>
signal.Fire("");
signal.Connect((foo) => {
print(foo);
});
Roblox-ts deviation:
- added
Signal.is
for checking if a value is a signal
1.2.0
9 months ago
1.1.0
9 months ago
1.0.1
9 months ago
1.0.0
1 year ago
1.10.0-ts.5
1 year ago
1.10.0-ts.4
1 year ago
1.10.0-ts.1
1 year ago
1.10.0-ts.0
1 year ago
1.10.0-ts.3
1 year ago
1.10.0-ts.2
1 year ago
1.9.0-ts.2
1 year ago
1.9.0-ts.1
1 year ago
1.9.0-ts.0
1 year ago