Skip to content

Commit e447dc2

Browse files
authored
Update README.md
1 parent 5c9fdbe commit e447dc2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ To run the transpiler, download all files from [dist](https://github.com/Perryvw
1616

1717
After copying these files to a locaton on your machine, run command `npm link typescript` in the directory the javascript files are in.
1818

19+
**Optionally:**
20+
Add the lualib files to your project. This helper library unlocks additional typescript functions:
21+
- Ternary operator
22+
- Functional-style list operations (forEach/map/filter/every/some)
23+
- Includes lua Map<S,T> and Set<T> implementations
24+
1925
### Transpiling an individual TypeScript file to Lua
2026
To transpile a typescript file to lua, run Compiler.js in node with the path to the file you want to compile, eg:
2127

0 commit comments

Comments
 (0)