# @rbxts/signal

> BindableEvent wrapper which passes values by reference

Latest version **1.1.1** (published 2022-09-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install @rbxts/signal
pnpm add @rbxts/signal
yarn add @rbxts/signal
bun add @rbxts/signal
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2022-09-13 |
| First published | 2019-06-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | validark |
| Keywords | Roblox, TypeScript, Signal, BindableEvent, Bindable, Bind |

## Links

- npm: https://www.npmjs.com/package/@rbxts/signal
- Repository: https://github.com/Validark/Roblox-TS-Libraries.git#master
- Homepage: https://github.com/Validark/Roblox-TS-Libraries/blob/master/signal/README.md
- Issues: https://github.com/Validark/Roblox-TS-Libraries/issues
- npm.io page: https://npm.io/package/@rbxts/signal

## Recent versions

- 1.1.1 (latest) — 2022-09-13
- 1.1.0 — 2022-09-03
- 1.0.3 — 2021-02-07
- 1.0.2 — 2020-07-16
- 1.0.1 — 2019-10-21
- 1.0.0 — 2019-06-02

## README

# Signal
BindableEvent wrapper. Passes arguments by reference rather than value.

```ts
import Signal from "@rbxts/signal";

const signal = new Signal<(tab: Array<string>) => void>();
const strings = new Array<string>();

signal.Connect(a => print(a))

print(strings) // table: 2BC04578
signal.Fire(strings) // table: 2BC04578
```

Corresponding Lua equivalent:

```lua
local Signal = require(TS.getModule("signal", script.Parent));
local signal = Signal.new();
local strings = {};
signal:Connect(function(a)
	return print(a);
end);
print(strings);
signal:Fire(strings);
```

---
_Source: https://npm.io/package/@rbxts/signal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
