Skip to content

Commit

Permalink
Merge pull request #682 from vonovak/@vonovak/fix-table-optionals
Browse files Browse the repository at this point in the history
fix: add '?' for optional params in tables
  • Loading branch information
tgreyuk authored Sep 1, 2024
2 parents 2de4462 + 88d4c12 commit 24ebfbb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export function typeDeclarationTable(
declarations.forEach((declaration: DeclarationReflection) => {
const row: string[] = [];

row.push(backTicks(declaration.name));
const optional = declaration.flags.isOptional ? '?' : '';
row.push(`${backTicks(declaration.name)}${optional}`);

row.push(this.partials.someType(declaration.type));

Expand Down

0 comments on commit 24ebfbb

Please sign in to comment.