Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ function formatType(node, getHref) {
return [t('null')];
case Syntax.VoidLiteral:
return [t('void')];
case 'StringLiteral': // Does not appear to be exported in doctrine.Syntax
return [t(JSON.stringify(node.name))];
case 'NumberLiteral': // Does not appear to be exported in doctrine.Syntax
return [t(JSON.stringify(node.name))];
case Syntax.UndefinedLiteral:
return [link('undefined', getHref)];
case Syntax.NameExpression:
Expand Down