Socket
Socket
Sign inDemoInstall

typescene-api-docgen

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescene-api-docgen - npm Package Compare versions

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc