typescene-api-docgen
Advanced tools
Comparing version 0.1.3 to 0.1.4
16
index.js
@@ -470,7 +470,9 @@ // COMMAND LINE APPLICATION: | ||
// use "<index>" for index signatures | ||
if (child.kind === ts.SyntaxKind.IndexSignature && | ||
parent) { | ||
item.name = name = "[string]"; | ||
item.id = idParts[0] + ".!index"; | ||
// use "[type]" for index signatures | ||
if (child.kind === ts.SyntaxKind.IndexSignature) { | ||
let match = child.getText().match( | ||
/\[[^:]+\:\s*([^\]\s]+)\]/); | ||
var indexType = (match && match[1]) || "any"; | ||
item.name = name = "[" + indexType + "]"; | ||
item.id = idParts[0] + ".!index:" + indexType; | ||
} | ||
@@ -574,2 +576,6 @@ break; | ||
// copy `isNamespace` onto class item as well | ||
// (to mark members as static in this context) | ||
if (item.isNamespace) existing.isNamespace = true; | ||
// use existing instance for recursion below | ||
@@ -576,0 +582,0 @@ item = existing; |
{ | ||
"name": "typescene-api-docgen", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "API documentation generator used by Typescene modules", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
374333
1754