|
16 | 16 | <% } %> |
17 | 17 |
|
18 | 18 | <%= md(section.description) %> |
19 | | - |
20 | | - <div class='pre p1 fill-light mt0'><%= signature(section) %></div> |
| 19 | + |
21 | 20 | <% if (section.type) { %> |
22 | 21 | <p> |
23 | 22 | Type: |
24 | 23 | <%= formatType(section.type) %> |
25 | 24 | </p> |
26 | 25 | <% } %> |
27 | | - <% if (section.augments.length) { %> |
| 26 | + <% if (section.arguments && section.augments.length) { %> |
28 | 27 | <p> |
29 | 28 | Extends |
30 | 29 | <% if (section.augments) { %> |
|
42 | 41 | <% if (section.copyright) { %><div>Copyright: <%= md(section.copyright, true) %></div><% }%> |
43 | 42 | <% if (section.since) { %><div>Since: <%- section.since %></div><% }%> |
44 | 43 |
|
45 | | - <% if (section.params.length) { %> |
| 44 | + <% if (section.params && section.params.length) { %> |
46 | 45 | <div class='py1 quiet mt1 prose-big'>Parameters</div> |
47 | 46 | <div class='prose'> |
48 | 47 | <% section.params.forEach(function(param) { %> |
|
79 | 78 | </div> |
80 | 79 | <% } %> |
81 | 80 |
|
82 | | - <% if (section.properties.length) { %> |
| 81 | + <% if (section.properties && section.properties.length) { %> |
83 | 82 | <div class='py1 quiet mt1 prose-big'>Properties</div> |
84 | 83 | <div> |
85 | 84 | <% section.properties.forEach(function(property) { %> |
|
106 | 105 | </div> |
107 | 106 | <% } %> |
108 | 107 |
|
109 | | - <% if (section.returns.length) { %> |
| 108 | + <% if (section.returns && section.returns.length) { %> |
110 | 109 | <% section.returns.forEach(function(ret) { %> |
111 | 110 | <div class='py1 quiet mt1 prose-big'>Returns</div> |
112 | 111 | <code><%= formatType(ret.type) %></code><% if (ret.description) { %>: |
|
115 | 114 | <% }) %> |
116 | 115 | <% } %> |
117 | 116 |
|
118 | | - <% if (section.throws.length) { %> |
| 117 | + <% if (section.throws && section.throws.length) { %> |
119 | 118 | <div class='py1 quiet mt1 prose-big'>Throws</div> |
120 | 119 | <ul> |
121 | 120 | <% section.throws.forEach(function(throws) { %> |
|
124 | 123 | </ul> |
125 | 124 | <% } %> |
126 | 125 |
|
127 | | - <% if (section.examples.length) { %> |
| 126 | + <% if (section.examples && section.examples.length) { %> |
128 | 127 | <div class='py1 quiet mt1 prose-big'>Example</div> |
129 | 128 | <% section.examples.forEach(function(example) { %> |
130 | 129 | <% if (example.caption) { %><p><%= md(example.caption) %></p><% } %> |
|
0 commit comments