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

1.0.0 • Public • Published

@rbxts/quicksave

NPM

Typings for evaera's quicksave package

Example Usage

const collection = quicksave.createCollection("data", {
	schema: {
		money: t.number,
		items: t.array(t.number),
	},
	defaultData: {
		money: 500,
		items: [],
	},
});

collection.getDocument("player").andThen((document) => {
	document.set("money", 1000);

	document.set(
		"items",
		document.get("items").map((item) => (item += 10)),
	);

	// NAUGHTY! not allowed!
	document.get("momey");

	document.set("money", [50]);
});

Installation

npm i @rbxts/quicksave

Changelog

Package Sidebar

Install

npm i @rbxts/quicksave

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

155 kB

Total Files

33

Last publish

Collaborators

  • overhash