Skip to content

Commit 8a968f2

Browse files
author
Alexandre Stanislawski
committed
fix(documentationjs): records display with ,
1 parent 1edbc44 commit 8a968f2

File tree

1 file changed

+3
-1
lines changed
  • docgen/layouts/mixins/documentationjs

1 file changed

+3
-1
lines changed

docgen/layouts/mixins/documentationjs/type.pug

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ mixin type(t)
2727
| ]
2828
else if t.type && t.type === 'RecordType'
2929
|{
30-
for field in t.fields
30+
for field, idxField in t.fields
3131
+type(field)
32+
if idxField < t.fields.length - 1
33+
|,
3234
|}
3335
else if t.type && t.type === 'FieldType'
3436
| !{t.key}:

0 commit comments

Comments
 (0)