You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--lld, --luaLibDir Specify typescript_lualib.lua location relative to outDir.
40
+
[string] [default: "./"]
41
+
--ah, --addHeader Specify if a header will be added to compiled files.
42
+
[boolean] [default: true]
43
+
44
+
Examples:
45
+
tstl path/to/file.ts [...] Compile files
46
+
tstl -p path/to/tsconfig.json Compile project
38
47
```
39
48
40
-
**Optionally:**
41
-
Add the lualib files from dist/ to your project. This helper library unlocks additional typescript functions:
42
-
- Ternary operator
43
-
- Functional-style list operations (forEach/map/filter/every/some)
44
-
- Includes lua `Map<S,T>` and `Set<T>` implementations
45
-
Add `require("typescript")` in your code code if you want to use the lualib functionality.
49
+
**Example tsconfig.json**
50
+
```
51
+
{
52
+
"compilerOptions": {
53
+
"noImplicitAny" : true,
54
+
"noImplicitThis" : true,
55
+
"alwaysStrict" : true,
56
+
"strictNullChecks": true,
57
+
"luaTarget": "JIT"
58
+
}
59
+
}
60
+
```
46
61
47
62
## Sublime Text integration
48
63
This compiler works great in combination with the [Sublime Text Typescript plugin](https://github.com/Microsoft/TypeScript-Sublime-Plugin) (available through the package manager as `TypeScript`).
0 commit comments