Comparing version 2.3.0 to 2.3.1
@@ -9,2 +9,3 @@ import { ComponentKind } from '../Models/ComponentKind'; | ||
returnType: string; | ||
isAbstract: boolean; | ||
isOptional: boolean; | ||
@@ -11,0 +12,0 @@ isStatic: boolean; |
@@ -9,2 +9,3 @@ "use strict"; | ||
this.returnType = 'any'; | ||
this.isAbstract = false; | ||
this.isOptional = false; | ||
@@ -15,3 +16,7 @@ this.isStatic = false; | ||
Property.prototype.toPUML = function () { | ||
return "" + { public: '+', private: '-', protected: '#' }[this.modifier] + (this.isStatic ? '{static} ' : '') + this.name + (this.isOptional ? '?' : '') + ": " + this.returnType; | ||
var result = { public: '+', private: '-', protected: '#' }[this.modifier]; | ||
result += (this.isAbstract ? '{abstract} ' : ''); | ||
result += (this.isStatic ? '{static} ' : ''); | ||
result += "" + this.name + (this.isOptional ? '?' : '') + ": " + this.returnType; | ||
return result; | ||
}; | ||
@@ -18,0 +23,0 @@ return Property; |
@@ -10,2 +10,3 @@ "use strict"; | ||
result.modifier = ComponentFactory_1.ComponentFactory.getMemberModifier(namedDeclaration); | ||
result.isAbstract = ComponentFactory_1.ComponentFactory.isAbstract(namedDeclaration); | ||
result.isOptional = ComponentFactory_1.ComponentFactory.isOptional(namedDeclaration); | ||
@@ -12,0 +13,0 @@ result.isStatic = ComponentFactory_1.ComponentFactory.isStatic(namedDeclaration); |
@@ -18,3 +18,3 @@ #!/usr/bin/env node | ||
commander_1.default | ||
.version('2.3.0') | ||
.version('2.3.1') | ||
.option('-i, --input <path>', 'Define the path of the Typescript file') | ||
@@ -21,0 +21,0 @@ .option('-o, --output <path>', 'Define the path of the output file. If not defined, it\'ll output on the STDOUT') |
{ | ||
"name": "tplant", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Typescript to PlantUML", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
89107
1178