Comparing version 0.4.0 to 0.4.1
@@ -428,3 +428,3 @@ "use strict"; | ||
} | ||
const properties = {}; | ||
let properties; | ||
const property_signatures = _get_property_signatures(node); | ||
@@ -436,5 +436,11 @@ for (const property_signature of property_signatures) { | ||
property_attributes.original = _resolve_original(property_signature); | ||
if (!properties) { | ||
properties = {}; | ||
} | ||
properties[property_name] = property_attributes; | ||
continue; | ||
} | ||
if (!properties) { | ||
properties = {}; | ||
} | ||
properties[property_name] = _resolve_property(property_signature); | ||
@@ -441,0 +447,0 @@ } |
{ | ||
"name": "plutonio", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "A typescript library that scans your typescript project and generate a schema of all types and interfaces of the project.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -530,3 +530,3 @@ /** | ||
} | ||
const properties: t.Properties = {}; | ||
let properties: t.Properties | undefined; | ||
const property_signatures = _get_property_signatures(node); | ||
@@ -539,5 +539,11 @@ for (const property_signature of property_signatures) { | ||
property_attributes.original = _resolve_original(property_signature); | ||
if (!properties) { | ||
properties = {}; | ||
} | ||
properties[property_name] = property_attributes; | ||
continue; | ||
} | ||
if (!properties) { | ||
properties = {}; | ||
} | ||
properties[property_name] = _resolve_property(property_signature); | ||
@@ -544,0 +550,0 @@ } |
Sorry, the diff of this file is not supported yet
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
103842
2369