Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tacheometry/rbxts-llama

TS typings for the Lua Library for Immutable Data (Llama) by Frelerik
https://github.com/tacheometry/rbxts-llama

immutable llama roblox roblox-ts

Last synced: 22 days ago
JSON representation

TS typings for the Lua Library for Immutable Data (Llama) by Frelerik

Awesome Lists containing this project

README

        

📚 Llama 🦙



Lua Library for Immutable Data

TS typings for freddylist's "Llama" library. Some useful links:

- **[Llama's repository](https://github.com/freddylist/llama/)**
- **[Llama's documentation](https://freddylist.github.io/llama/)**
- **[This package's repository](https://github.com/tacheometry/rbxts-llama/)**

Installation

[![NPM](https://nodei.co/npm/@rbxts/llama.png)](https://npmjs.org/package/@rbxts/llama)

Run `npm i @rbxts/llama` in your project directory.

Usage

After importing the library, you can use any utility from [the documentation](https://freddylist.github.io/llama/) in TS.

Llama data types for TS

- Dictionaries are objects _`{}`_
- Lists are arrays _`T[]`_
- Sets are interpreted as JS Sets _`new Set`_
-- In roblox-ts, a `Set` whose added values are `1` and `5` is just a table that looks like:
`lua { [1] = true, [5] = true } `

Importing

```ts
import Llama from "@rbxts/llama";
```

or

```ts
import { Dictionary, List, Set } from "@rbxts/llama";
```

---

If you would like to contribute to Llama, please file Pull Requests and Issues in [its GitHub repository](https://github.com/freddylist/llama/), and not in the repository of this package.