Skip to content

Commit 47d15bb

Browse files
authored
feat(apiDocs): Add api type to params too (#5048)
- This changes `array` to also include its subtype - eg. instead of just `array` it'll now say `array(string)`
1 parent 3e9d0ac commit 47d15bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/apiPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Params = ({ params }) => (
2121
<dt>
2222
<div>
2323
<code data-index>{param.name}</code>
24-
{!!param.schema?.type && <em> ({param.schema.type})</em>}
24+
{!!param.schema?.type && <em> ({param.schema.type}{param.schema.items && `(${param.schema.items.type})`})</em>}
2525
</div>
2626
{!!param.required && <div className="required">REQUIRED</div>}
2727
</dt>

0 commit comments

Comments
 (0)