typescript-to-lua
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -79,3 +79,3 @@ "use strict"; | ||
LuaTranspiler.prototype.accessPrefix = function (node) { | ||
return node && this.isModule ? | ||
return node && (this.isModule || this.namespace.length > 0) ? | ||
"local " : ""; | ||
@@ -329,3 +329,3 @@ }; | ||
var variableDeclaration = _a[_i]; | ||
result += this.transpileVariableDeclaration(variableDeclaration); | ||
result += this.indent + this.transpileVariableDeclaration(variableDeclaration); | ||
} | ||
@@ -332,0 +332,0 @@ result += this.indent + ("while(" + this.transpileExpression(node.condition) + ") do\n"); |
{ | ||
"name": "typescript-to-lua", | ||
"license": "MIT", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"repository": "https://github.com/Perryvw/TypescriptToLua", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -41,2 +41,3 @@ # TypescriptToLua | ||
- [Dota 2 Modding](https://github.com/ModDota/API/tree/master/declarations/server) | ||
- [Defold Game Engine Scripting](https://github.com/dasannikov/DefoldTypeScript/blob/master/defold.d.ts) | ||
@@ -43,0 +44,0 @@ ## Sublime Text integration |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83225
58