@rbxts/better-janitor
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

Overview

A stack-based Janitor implementation written in Luau for the Roblox platform with a TypeScript support.

Basic usage

const janitor = new Janitor()
	.addFn(() => {
		warn("third");
	})
	.addFn(() => {
		warn("second");
	})
	.addFn(() => {
		warn("first after connection was cleaned up");
	})
	.addConnection(
		game.DescendantAdded.Connect(() => {
			// some code
		})
	);

Readme

Keywords

Package Sidebar

Install

npm i @rbxts/better-janitor

Weekly Downloads

4

Version

0.3.1

License

MIT

Unpacked Size

14.4 kB

Total Files

5

Last publish

Collaborators

  • mathfox