Return code object

This commit is contained in:
Copple committed 2022-08-15 19:37:27 +02:00
1 parent 0a96ba0dbe
commit f231173033
1 file changed
+3 -4
@@ -258,8 +258,7 @@ Not yet implemented
function extractParamTypeAsString(paramDefinition) {
if (paramDefinition.type?.name) {
return `<code>${paramDefinition.type.name}</code>`
}
if (paramDefinition.type?.type == 'union') {
} else if (paramDefinition.type?.type == 'union') {
return paramDefinition.type.types
.map((x) =>
x.value
@@ -271,9 +270,9 @@ function extractParamTypeAsString(paramDefinition) {
: ''
)
.join(' | ')
} else {
return '<code>object</code>'
}
return '<code>object</code>'
}
/**