Skip to content

Commit

Permalink
fix(documentation.js): Support for record types
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Stanislawski committed Apr 27, 2017
1 parent 7aed9b8 commit 219ecd9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docgen/layouts/mixins/documentationjs/type.pug
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ mixin type(t)
| [
+type(t.expression)
| ]
else if t.type && t.type === 'RecordType'
|{
for field in t.fields
+type(field)
|}
else if t.type && t.type === 'FieldType'
| !{t.key}:
+type(t.value)
else if t.type && t.type === 'UnionType'
each p, index in t.elements
+type(p)
Expand Down

0 comments on commit 219ecd9

Please sign in to comment.