Skip to content

Commit

Permalink
fix(doc): handle tuple type
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 authored and dpellier committed Jul 29, 2024
1 parent 79ef842 commit 4787ccc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ods/scripts/generate-typedoc-md.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ function printType(typeObject) {
return `${printType(typeObject.elementType)}[]`;
case 'union':
return typeObject.types.map(printType).join(' \| ');
case 'tuple':
return `[${typeObject.elements.map(printType).join(' \| ')}]`;
}
}
return '_unknown_';
Expand Down

0 comments on commit 4787ccc

Please sign in to comment.