Skip to content

tacheometry/rbxts-llama

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 Llama 🦙

Lua Library for Immutable Data

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

Installation

NPM

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

Usage

After importing the library, you can use any utility from the documentation in TS.

Llama data types for TS

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

Importing

import Llama from "@rbxts/llama";

or

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, and not in the repository of this package.