Skip to content

Support for @hideconstructor #15

@gorankarlic

Description

@gorankarlic

Can you please add support for the @hideconstructor tag?

--- a/tmpl/method.tmpl
+++ b/tmpl/method.tmpl
@@ -19,3 +19,3 @@ var hasMethodSummary = (data.kind !== 'class')
 
-<?js if (data.kind !== 'module') { ?>
+<?js if (data.kind !== 'module' && !data.hideconstructor) { ?>
 
@@ -50,3 +50,3 @@ var hasMethodSummary = (data.kind !== 'class')
 
-<?js if (data.kind !== 'module' && data.description) { ?>
+<?js if (data.kind !== 'module' && data.description && !data.hideconstructor) { ?>
 <div class="method-description">
@@ -76,3 +76,3 @@ var hasMethodSummary = (data.kind !== 'class')
 
-<?js if (data.params && params.length) { ?>
+<?js if (data.params && params.length && !data.hideconstructor) { ?>
     <h4 class="method-heading">Parameters</h4>

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions