Skip to content

Commit c99fa57

Browse files
committed
Add new configuration options to tsconfig schema
1 parent 6d73fb9 commit c99fa57

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tsconfig-schema.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
"default": "library",
2424
"enum": ["default", "library"]
2525
},
26+
"lua51AllowTryCatchInAsyncAwait": {
27+
"description": "Disable the warning that try/catch is not allowed in async functions in Lua 5.1, in case you are using a patched 5.1 lua version that supports this.",
28+
"type": "boolean",
29+
"default": false
30+
},
2631
"luaBundle": {
2732
"description": "The name of the lua file to bundle output lua to. Requires luaBundleEntry.",
2833
"type": "string"
@@ -43,6 +48,11 @@
4348
"default": "universal",
4449
"enum": ["5.1", "5.2", "5.3", "JIT"]
4550
},
51+
"noImplicitGlobalVariables": {
52+
"description": "Always declare all root-level variables as local, even if the file is not a module and they would be global in TypeScript.",
53+
"type": "boolean",
54+
"default": false
55+
},
4656
"noImplicitSelf": {
4757
"description": "If true, treats all project files as if they were prefixed with\n/** @noSelfInFile **/.",
4858
"type": "boolean",
@@ -53,11 +63,20 @@
5363
"type": "boolean",
5464
"default": false
5565
},
66+
"noResolvePaths": {
67+
"description": "An array of import paths that should not be resolved but copied verbatim to output lua.",
68+
"type": "array"
69+
},
5670
"sourceMapTraceback": {
5771
"description": "Applies the source map to show source TS files and lines in error tracebacks.",
5872
"default": false,
5973
"type": "boolean"
6074
},
75+
"tstlVerbose": {
76+
"description": "Give verbose tstl output, helpful when diagnosing tstl issues.",
77+
"type": "boolean",
78+
"default": false
79+
},
6180
"luaPlugins": {
6281
"description": "List of TypeScriptToLua plugins.",
6382
"type": "array",

0 commit comments

Comments
 (0)