Skip to content

Commit

Permalink
fix(documentationjs): add support litteral string types in type format
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Stanislawski committed Apr 26, 2017
1 parent af12c9a commit 2a08e7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docgen/layouts/mixins/documentationjs/type.pug
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ mixin type(t)
if index < t.applications.length - 1
|,
| &gt;
else if t.type && t.type === 'StringLiteralType'
| "!{t.value}"
else if t.type && t.type === 'OptionalType'
| [
+type(t.expression)
Expand Down

0 comments on commit 2a08e7d

Please sign in to comment.