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

1.0.2 • Public • Published

Neomake

My personal alternative to @rbxts/make.

import { make, modify } from "@rbxts/neomake";

// basic usage
const root = make("Part", {
	Position: Vector3.zero,
	children: make("Attachment"),
});

// refs
const weldedPart = make("Part", (ref) => ({
	Position: Vector3.zero,
	Parent: Workspace,
	children: make("WeldConstraint", {
		Part0: ref,
		Part1: root,
	}),
}));

// carbon-copy
const light = make(new Instance("PointLight"), {
	Color: new Color3(1, 1, 1),
	Parent: weldedPart,
});

// modify an existing instance
modify(light, {
	Enabled: false,
});

Caveats

  • This module does not have event support. If that is something you'd need I'd suggest using @rbxts/make or @rbxts/altmake.

Contributing

All PRs are welcome!

Readme

Keywords

none

Package Sidebar

Install

npm i @rbxts/neomake

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

5.8 kB

Total Files

5

Last publish

Collaborators

  • neohertz