mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
Return code object
This commit is contained in:
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>'
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user