Skip to content

Commit

Permalink
docs: hide parameters if none
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Oct 23, 2024
1 parent 5092d25 commit b7f293e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/docgen/render/apiFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function renderApiFunction(options: {

content.push(renderSignature({ data, dataLookup, overloads }))

if (data.parameters)
if (data.parameters?.length)
content.push(
renderParameters({
data,
Expand Down

0 comments on commit b7f293e

Please sign in to comment.