Skip to content

Commit

Permalink
docs(core): show array type instead of any (#2318)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jan 13, 2020
1 parent 02da187 commit 2b9fb4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/scripts/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const generateDocumentationForPlugin = (plugin) => {

if(interfaceDecl.children) {
html.push(...interfaceDecl.children.map(c => {
const nameString = c.type.name ? c.type.name : c.type.value ? `'${c.type.value}'` : 'any';
const nameString = c.type.name ? c.type.name : c.type.value ? `'${c.type.value}'` : c.type.type && c.type.type === 'array' ? `${c.type.elementType.name}[]` : 'any';
if (!c.type.name && !c.type.value) {
console.log(c);
}
Expand Down

0 comments on commit 2b9fb4d

Please sign in to comment.