diff --git a/declarations/comment.js b/declarations/comment.js index a876bd6e0..1e12d0c4c 100644 --- a/declarations/comment.js +++ b/declarations/comment.js @@ -58,7 +58,21 @@ declare type CommentContextGitHub = { url: string }; -declare type CommentTag = { +declare type CommentTagBase = { + title: string +}; + +declare type CommentTag = CommentTagBase & { + name?: string, + title: string, + description?: Object, + default?: any, + lineNumber?: number, + type?: DoctrineType, + properties?: Array +}; + +declare type CommentTagNamed = CommentTag & { name?: string, title: string, description?: Object, @@ -88,18 +102,19 @@ declare type Remark = { declare type Access = 'private' | 'public' | 'protected'; declare type Scope = 'instance' | 'static' | 'inner' | 'global'; -declare type Kind = 'class' | - 'constant' | - 'event' | - 'external' | - 'file' | - 'function' | - 'member' | - 'mixin' | - 'module' | - 'namespace' | - 'typedef' | - 'interface'; +declare type Kind = + | 'class' + | 'constant' + | 'event' + | 'external' + | 'file' + | 'function' + | 'member' + | 'mixin' + | 'module' + | 'namespace' + | 'typedef' + | 'interface'; declare type Comment = { errors: Array, @@ -152,4 +167,4 @@ declare type ReducedComment = { name: string, kind: ?Kind, scope?: ?Scope -} +}; diff --git a/default_theme/section._ b/default_theme/section._ index 4ef057fee..a7158640f 100644 --- a/default_theme/section._ +++ b/default_theme/section._ @@ -52,7 +52,7 @@ = <%- param.default %><% } %>) <%= md(param.description, true) %> - <% if (param.properties) { %> + <% if (param.properties && param.properties.length) { %> @@ -93,7 +93,7 @@ <% } %><% if (property.description) { %>: <%= md(property.description, true) %><% } %> - <% if (property.properties) { %> + <% if (property.properties && property.properties.length) { %>