Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tacheometry/rbxts-llama
- Owner: tacheometry
- Created: 2021-04-12T22:29:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-14T01:22:41.000Z (over 2 years ago)
- Last Synced: 2024-10-19T00:32:45.159Z (25 days ago)
- Topics: immutable, llama, roblox, roblox-ts
- Language: Lua
- Homepage: https://www.npmjs.com/package/@rbxts/llama
- Size: 52.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
📚 Llama 🦙
Lua Library for Immutable DataTS 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.