# @rbxts/transact

> Transaction will allow you to conduct secure transactions using Transact, Rollback methods.

Latest version **1.0.4** (published 2024-06-17) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2024-06-17 |
| First published | 2024-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | tesmi |
| Maintainers | tesmi |
| Keywords | Transaction, roblox-ts |

## Links

- npm: https://www.npmjs.com/package/@rbxts/transact
- Repository: https://github.com/Tesmi-Develop/transaction
- Homepage: https://github.com/Tesmi-Develop/transaction#readme
- Issues: https://github.com/Tesmi-Develop/transaction/issues
- npm.io page: https://npm.io/package/@rbxts/transact

## Dependencies (2)

- [@rbxts/signal](https://npm.io/package/@rbxts/signal.md) ^1.1.1
- [@rbxts/testez](https://npm.io/package/@rbxts/testez.md) ^0.4.2-ts.0

## Recent versions

- 1.0.4 (latest) — 2024-06-17
- 1.0.3 — 2024-06-17
- 1.0.2 — 2024-06-17
- 1.0.1 — 2024-05-17
- 1.0.0 — 2024-05-17

## README

# 🤝 Transaction 🤝
Transaction will allow you to conduct secure transactions using Transact, Rollback methods.

## Example
A code snippet showing how to set up and use Transaction.

```ts
class TestEntity implements ITransactEntity {
	public Init() {
		print("Init");
	}
	
	public async Transact() {
		print("Manipulating the data");
		print("Data saving");
	}

	public async Rollback() {
		print("Here you can roll back the data to its original state");
	}

	public End() {
		print("End");
	}
}

const transaction = new Transaction([new TestEntity(), new TestEntity()]);
const transact = transaction.Transact().expect();
print(transact.StatusCodes);
```

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