Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typedoc-plugin-typescript-declaration

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typedoc-plugin-typescript-declaration - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

23

dist/index.js

@@ -102,4 +102,4 @@ 'use strict';

const paramComments = signature.parameters
.filter(p => { var _a; return (_a = p.comment) === null || _a === void 0 ? void 0 : _a.text; })
.map(p => this.renderMultilineComment(`@param ${p.name}`, p.comment.text))
.filter(p => { var _a, _b; return ((_a = p.comment) === null || _a === void 0 ? void 0 : _a.text) || ((_b = p.comment) === null || _b === void 0 ? void 0 : _b.shortText); })
.map(p => { var _a, _b; return this.renderMultilineComment(`@param ${p.name}`, ((_a = p.comment) === null || _a === void 0 ? void 0 : _a.text) || ((_b = p.comment) === null || _b === void 0 ? void 0 : _b.shortText) || ''); })
.join('\n');

@@ -728,11 +728,15 @@ if (paramComments.length) {

render(node) {
var _a;
var _a, _b;
const lines = [];
if (node.comment) {
const member = node;
let indent = false;
if (member.signatures && ((_a = member.signatures[0]) === null || _a === void 0 ? void 0 : _a.comment)) {
indent = true;
}
else if (node.comment) {
this.pushIfTruthy(lines, this.renderComment(node));
}
const member = node;
if (member.children || member.indexSignature) {
const children = [...(member.children || []), member.indexSignature].filter(c => c);
if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.kind) === models.ReflectionKind.TypeAlias) {
if (((_b = node.parent) === null || _b === void 0 ? void 0 : _b.kind) === models.ReflectionKind.TypeAlias) {
const body = this.renderBody(member, 1, ',');

@@ -748,3 +752,8 @@ if (body) {

else if (member.signatures) {
lines.push(ReflectionFormatter.instance().render(member.signatures[0]));
let signature = ReflectionFormatter.instance().render(member.signatures[0]);
if (indent) {
lines.push('\n');
signature = signature.split('\n').map(l => ` ${l}`).join('\n');
}
lines.push(signature);
}

@@ -751,0 +760,0 @@ else if (member.name === '__type') {

{
"name": "typedoc-plugin-typescript-declaration",
"version": "0.3.0",
"version": "0.3.1",
"description": "Typedoc plugin to render to typescript declaration file",

@@ -5,0 +5,0 @@ "main": "dist/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